ybq/Android-SpinKit

Wave animation is not working

imarindam opened this issue · 6 comments

Hello, Thank you for these awesome Spin Kits.
I was using Wave. But this is not animating as the wave.
Please take a look at this screenshot. https://ibb.co/jR6Mpo

My XML:

<com.github.ybq.android.spinkit.SpinKitView android:id="@+id/progressBar" style="@style/SpinKitView.Wave" xmlns:app="http://schemas.android.com/apk/res-auto" app:SpinKit_Color="@color/red" app:SpinKit_Style="Wave" android:layout_width="match_parent" android:layout_height="wrap_content" android:layout_below="@+id/inputsearchenglishhome" android:layout_marginTop="65dp" android:visibility="visible" />

My Java:

private ProgressBar progressBar; progressBar = (ProgressBar) rootView.findViewById(R.id.progressBar); Wave wave = new Wave(); progressBar.setIndeterminateDrawable(wave);

ybq commented

Can you tell me your device info and the version of spinkit you are using

I have tried this app on One Plus One Running Android O and Redmi Note 4 Android 7.0.
Both with the same problem.
I've implemented this in my Gradle implementation 'com.github.ybq:Android-SpinKit:1.0.5'

@ybq My build.gradle setup is as follows:
minSdkVersion 21
targetSdkVersion 27

Any tip to make it work?

@imarindam try with version 1.1.0 instead of 1.0.5

Same issues on newer gradle with 26+.

Almost all the animations is not animated as expected. Try a new project with latest target.

minSdkVersion 21
targetSdkVersion 27

Confirmed!
The 1.1.0 version is working right now.

Thanks @javichaques