Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

change ProgressBar fps in Android

I use an ProgressBar in xml Android bus is very slow. Optimal is 60fps. Is it possible to change the frame rate or to add custom progress circle with more fps?

 <ProgressBar
                    android:id="@+id/progressBar1"
                    android:layout_width="wrap_content"
                    android:layout_height="wrap_content"
                    android:layout_marginBottom="17dp"
                    android:layout_gravity="center" />
like image 297
e-info128 Avatar asked Nov 22 '25 19:11

e-info128


1 Answers

You can modify the duration with:

android:indeterminateDuration=<duration in ms>

http://developer.android.com/reference/android/widget/ProgressBar.html#indeterminateDuration

like image 140
Enrichman Avatar answered Nov 24 '25 08:11

Enrichman



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!