如何在我的应用中实施Google Play商店应用的工具栏和状态栏? [重复]

问题描述 投票:2回答:1

这个问题在这里已有答案:

如果您进入Google Play商店并打开应用的详细信息页面,则即使在状态栏后面也可以看到横幅图片。如何在我的应用程序中实现相同的效果(图像进入状态栏)?

我在我的应用程序中尝试了以下布局XML代码,但它没有使状态栏完全透明:

<item name="android:windowTranslucentStatus">true</item>
android toolbar statusbar
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.