Problem Description
I'm trying to change ProgressBar
color using custom style defined in the style.xml
layout.xml
<ProgressBar
android:id="@+id/progress_bar"
style="@style/ProgressTheme"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:indeterminate="true"
android:indeterminateBehavior="repeat" />
style.xml
<style name="ProgressTheme" parent="Widget.AppCompat.ProgressBar.Horizontal">
<item name="colorAccent">#000</item>
</style>
Question
I find some useful articles about how to change color programatically or by adding some layer-list
, but I want simple solution. And I guess that the way how I implemented should work.
How I can change color?