2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Android Status Barのカラーの変更

Posted at

Windowクラスに各種設定することでカラーの変更だけでなく色々と実現可能となっているようです。
#Status Barの色の変更

window.statusBarColor = ContextCompat.getColor(this, R.color.Black)

#Full Screen表示,解除する
Full Screen表示

window.addFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)

Full Screen解除

window.clearFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN)

#Status Barのアイコンのカラーを変更する

window.decorView.systemUiVisibility = View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?