ybq / Android-SpinKit

Android loading animations
https://ybq.github.io/Android-SpinKit
MIT License
8.62k stars 1.31k forks source link

Set Color Does Not Work On These Drawables #37

Closed rayliverified closed 5 years ago

rayliverified commented 7 years ago

Set color via XML "app:SpinKit_Color="@color/colorAccent"" does not work on the following drawables:

For the above drawables, color defaults to white and setting color does not work.

Set color via XML works for the following drawables:

References Issue #24

rayliverified commented 6 years ago

Thanks @firetrap for fixing this issue. Hope your PR is merged soon.

rayliverified commented 6 years ago

Any update?

omar-othmann commented 6 years ago

Hi @searchy2 it's work for me!

xmlns:app="http://schemas.android.com/apk/res-auto" app:SpinKit_Color="@color/colorAccent"

<com.github.ybq.android.spinkit.SpinKitView android:id="@+id/spin_kit" style="@style/SpinKitView.Large.Wave" android:layout_width="30dp" android:layout_height="30dp" android:layout_alignParentBottom="true" android:layout_alignParentLeft="true" android:layout_alignParentStart="true" android:layout_gravity="center" android:layout_marginLeft="44dp" android:layout_marginStart="44dp" app:SpinKit_Color="@color/colorAccent" />

rayliverified commented 5 years ago

Closing this issue for now.