Need fully transparent status bar

后端 未结 3 2053
野趣味
野趣味 2020-12-19 08:34

Hi Friends I want to know can I change status bar color or make it completely transparent.

I\'ve tried so many things but I can\'t get the fully transparent status b

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-19 09:04

    You don't need to write all these stuff, just add in your kotlin activity

    requestWindowFeature(Window.FEATURE_NO_TITLE)
    getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN, WindowManager.LayoutParams.FLAG_FULLSCREEN)
    

    and in your theme

    true
    

提交回复
热议问题