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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -