“Status paska tekstu Android” Kod odpowiedzi

Status paska tekstu 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
Energetic Emu

Status paska tekstu Android

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

Status paska tekstu Android

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

Odpowiedzi podobne do “Status paska tekstu Android”

Pytania podobne do “Status paska tekstu Android”

Więcej pokrewnych odpowiedzi na “Status paska tekstu Android” w Java

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu