I would like to know how I can change indeterminate ProgressBar color from basis white/grey color to black ? When I change the indeterminateDrawable
I see other answers are quite old, in order to change the indeterminate ProgressBar color you have just to set android:indeterminateTint and android:indeterminateTintMode attributes in your ProgressBar item directly in XML:
android:indeterminateTint - Tint to apply to the indeterminate progress indicator.
Must be a color value, in the form of
"#rgb","#argb","#rrggbb","#aarrggbb", or a reference to a resource@color/colorPrimary.
android:indeterminateTintMode - Blending mode used to apply the progress indicator tint.
Must be one of the following constant values:
add,multiply,screen,src_atop,src_inorsrc_over
Getter and Setter methods for these attributes are:
All of them were added in API level 21