Android 覆盖操作栏
我正在创建一个gallery活动,我希望像在普通gallery应用程序中一样覆盖操作栏,类似于以下内容: 在styles.xml中,我创建了主题:Android 覆盖操作栏,android,android-actionbar,android-appcompat,Android,Android Actionbar,Android Appcompat,我正在创建一个gallery活动,我希望像在普通gallery应用程序中一样覆盖操作栏,类似于以下内容: 在styles.xml中,我创建了主题: <style name="GalleryTheme" parent="Theme.AppCompat"> <item name="android:windowActionBarOverlay">true</item> </style> 真的 在Android清单文件中:
<style
name="GalleryTheme"
parent="Theme.AppCompat">
<item name="android:windowActionBarOverlay">true</item>
</style>
真的
在Android清单文件中:
<activity
android:name=".Activities.Gallery"
android:label="Gallery"
android:theme="@style/GalleryTheme">
</activity>
然而,这并没有起到任何作用。有什么我遗漏的吗?你能发布一张你想要实现的图片或截图吗?我想我没有相同的Gallery应用程序。你希望操作栏半透明,下面显示内容吗?我添加了一张我正在寻找的照片。我想你可以使用
框架布局
并在内容顶部放置一个透明背景的工具栏