Android: Changing color of window background when using FLAG_SECURE

前端 未结 2 1036
予麋鹿
予麋鹿 2021-01-13 07:04

I have a request that when the my Android application is placed into the background that I blank out the screen to hide sensitive data. This was easy enough to implement us

2条回答
  •  有刺的猬
    2021-01-13 07:12

    I'm able to change color of window background to "black" when using FLAG_SECURE through AppTheme in styles.xml file via changing theme like this:

    
    

    It can be customizable to any color but I need black, so if you need custom color make further investigation.

提交回复
热议问题