Progress bar color

When starting the application it always shows the green progress bar, however the color of the progress bar does not change even though the theme is blue for example.


I’m not sure if it will work, but I use this code for some applications I made using Android Studio, maybe it will work in SAB. The color of the progress bar is defined by the primary color, which can be green, blue, brown, or another color.

Captura de Tela (23)