I am currently using an external library in an Android project imported through gradle.
This library shows a notification bar with a ProgressBar circle. This is the code I found in it:
<ProgressBar
android:id="@+id/progress_bar"
android:layout_height="match_parent"
android:layout_marginBottom="4dp"
android:layout_marginTop="4dp"
style="@style/SuperActivityToast_Progress_ProgressBar"/>
Matching style:
<style name="SuperActivityToast_Progress_ProgressBar" parent="android:Widget.Holo.ProgressBar">
<item name="android:layout_width">32dp</item>
<item name="android:layout_marginLeft">8dp</item>
</style>
If I understand the match, the color of the circle shown is obtained from the default value (green on my phone). I need to change it!
Now I can’t change the source code, and the library itself does not offer me the opportunity to programmatically set the style.
Is there a way to change the default style at the application level or is it better to override this particular style?
Thanks Davide