This question already has answers here:
Lollipop : draw behind statusBar with its color set to transparent
                                
                                    (15个回答)
                                
                        
                                2年前关闭。
            
                    
如果您进入Google Play商店并打开应用程序的详细信息页面,则横幅图像甚至在状态栏后面都可见。如何在我的应用程序中实现相同的效果(图像显示在状态栏中)?

我已经在我的应用程序中尝试了以下布局XML代码,但是并不能使状态栏完全透明:

<item name="android:windowTranslucentStatus">true</item>

最佳答案

我认为这个问题与以下问题基本相同:Lollipop : draw behind statusBar with its color set to transparent,那里有一些很好的答案。

10-07 19:13
查看更多