I have used the this link for progress bar animation, which works fine on all devices except Sony Xperia. Please tell me the solution for the same. Didn't found any.
Call the progress bar animation like below:
ProgressBarAnimation anim = new ProgressBarAnimation(progress, from, to);
anim.setDuration(1000);
progress.startAnimation(anim);
This is the same way I actually implemented which is working fine on nexus 6, Samsung phones, but not working on Sony Xperia.
<ProgressBar
android:id="@+id/progressBar"
android:layout_width="@dimen/pBar_ht_wd"
android:layout_height="@dimen/pBar_ht_wd"
android:layout_centerInParent="true"
android:layout_marginTop="@dimen/pb_mg_top"
android:visibility="visible"
style="?android:attr/progressBarStyleHorizontal"
android:progressDrawable="@drawable/custom_circular_bar"
android:progress="75"
android:max="100"
android:secondaryProgress="100"
android:useLevel="true"/>
I want to have below result in the progress bar: