Answers for "android studio clock bar change color programmatically"

0

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)); 
}
Posted by: Guest on October-22-2021

Code answers related to "android studio clock bar change color programmatically"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language