1 public void statuscolor(){
2 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {
3 Window window = getWindow();
4 window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
5 window.setStatusBarColor(Color.parseColor(getPreferences().getString(Constant.SECONDARY_COLOR, Constant.SECONDARY_COLOR)));
6 }
7 }
1<style name="RedAccent" parent="ThemeOverlay.AppCompat.Light">
2 <item name="colorAccent">#F00</item>
3</style>
4
1<ProgressBar
2 android:id="@+id/progress_bar"
3 android:layout_width="32dp"
4 android:layout_height="32dp"
5 android:theme="@style/RedAccent"/>
6