android - Change horizontal progress bar indeterminate color -


is possible change horizontal indeterminate color? of take standard theme color.

i change orange?

i know have change circle color not sure change horizontal color tried theme, custom progress bar in drawable etc couldn't work.

here xml:

<progressbar    android:id="@+id/status_progress"    style="?android:attr/progressbarstylehorizontal"    android:layout_width="match_parent"    android:layout_height="15dp"    android:layout_below="@id/status_text"    android:indeterminate="true"    android:indeterminateonly="true" /> 

progressbar.getindeterminatedrawable()     .setcolorfilter(progressbar.getcontext().getresources().getcolor(<colorid>),         porterduff.mode.src_in); 

Comments

Popular posts from this blog

java - BeanIO write annotated class to fixedlength -

Using Java 8 lambdas/transformations to combine and flatten two Maps -

How to connect android app to App engine -