Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //jika hanya ganti warna background
- Window window;
- window = this.getWindow();
- window.setStatusBarColor(this.getResources().getColor(R.color.colorPrimary));
- //jika ganti warna background menjadi putih dan icon jadi hitam
- Window window;
- window = this.getWindow();
- window.setStatusBarColor(this.getResources().getColor(R.color.colorBackground));
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
- window.getDecorView().setSystemUiVisibility(View.SYSTEM_UI_FLAG_LIGHT_STATUS_BAR);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement