Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: attribute spark_fillColor not found #75

Open
cgposh opened this issue Jul 2, 2019 · 1 comment
Open

error: attribute spark_fillColor not found #75

cgposh opened this issue Jul 2, 2019 · 1 comment

Comments

@cgposh
Copy link

cgposh commented Jul 2, 2019

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" />

`

@veyndan
Copy link
Contributor

veyndan commented Oct 10, 2019

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.

implementation project(path: ':spark')

To get the library SNAPSHOT, you can use jitpack.io (see here).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants