Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

statusbar text color android

getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);//  set status text dark

getWindow().setStatusBarColor(ContextCompat.getColor(MainActivity.this,R.color.colorPrimaryDark));// set status background white
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #statusbar #text #color #android
ADD COMMENT
Topic
Name
5+5 =