Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

android studio clock bar change color programmatically

if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
  Window w = getWindow();
  w.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
  w.setStatusBarColor(getResources().getColor(R.color.dashboard_main_color)); 
}
 
PREVIOUS NEXT
Tagged: #android #studio #clock #bar #change #color #programmatically
ADD COMMENT
Topic
Name
7+4 =