error: attribute spark_fillColor not found
cgposh opened this issue · comments
I am getting this error in my app (xml below), but not in the sample app. I have even copied and pasted the code from the sample app into my own, and I get the same error. I have tried cleans, rebuilds, and restarting and I can't get it to recognize the attribute. It also is not recognizing it when I try to do it programmatically, even though it seems to be defined in the source code. I also double check and made sure I'm running the same version as the sample app (1.2.0).
I'm not sure if I'm just missing something or what, it seems like it should be fairly straightforward to do.
Thanks!
`
<com.robinhood.spark.SparkView
android:id="@+id/todayHourlyTemps"
android:layout_width="wrap_content"
android:layout_height="100dp"
app:spark_lineColor="@color/colorPrimary"
app:spark_lineWidth="5dp"
app:spark_scrubEnabled="true"
app:spark_fill="true"
app:spark_fillColor="@color/colorPrimaryTransparent"
android:layout_centerHorizontal="true" />
`
spark_fillColor
is available in the library's SNAPSHOT (i.e. the current code) but is not available in version 1.2.0. The sample app actually uses the current repository code, not version 1.2.0 as you suggested.
spark/spark-sample/build.gradle
Line 24 in 05b8040
To get the library SNAPSHOT, you can use jitpack.io (see here).