Android Lollipop Set Status Bar Text Color

后端 未结 7 1136
遇见更好的自我
遇见更好的自我 2020-12-14 06:30

I\'m trying to set the status bar text color in Android v21, but I\'m not seeing an API method for it. Here\'s what I have so far for the background

MyActivity.java

7条回答
  •  [愿得一人]
    2020-12-14 07:18

    You can use this line to set a darker text color when you are using the white color for the status bar.

    window.clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS);
    

提交回复
热议问题