“StatusBar Teks warna android” Kode Jawaban

StatusBar Teks warna 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

StatusBar Teks warna 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

StatusBar Teks warna 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

Jawaban yang mirip dengan “StatusBar Teks warna android”

Pertanyaan yang mirip dengan “StatusBar Teks warna android”

Lebih banyak jawaban terkait untuk “StatusBar Teks warna android” di Java

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya