ybq / Android-SpinKit

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

Wave animation is not working #49

Open imarindam opened 6 years ago

imarindam commented 6 years ago

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 6 years ago

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

imarindam commented 6 years ago

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'

imarindam commented 6 years ago

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

Any tip to make it work?

javichaques commented 6 years ago

@imarindam try with version 1.1.0 instead of 1.0.5

libern commented 5 years ago

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

libern commented 5 years ago

Confirmed! The 1.1.0 version is working right now.

Thanks @javichaques