“Android da cor do texto statusbar” Respostas de código

Android da cor do texto statusbar

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
Energetic Emu

Android da cor do texto statusbar

getWindow().setStatusBarColor(ContextCompat.getColor(BookReaderActivity.this, R.color.black));
View decorView = getWindow().getDecorView(); //set status background black 
decorView.setSystemUiVisibility(decorView.getSystemUiVisibility() & ~View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR); //set status text  light
Energetic Emu

Android da cor do texto statusbar

getWindow().getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);//  set status text dark
getWindow().setStatusBarColor(ContextCompat.getColor(BookReaderActivity.this,R.color.white));// set status background white
Energetic Emu

Respostas semelhantes a “Android da cor do texto statusbar”

Perguntas semelhantes a “Android da cor do texto statusbar”

Mais respostas relacionadas para “Android da cor do texto statusbar” em Java

Procure respostas de código populares por idioma

Procurar outros idiomas de código