Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/195.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Android 覆盖操作栏_Android_Android Actionbar_Android Appcompat - Fatal编程技术网

Android 覆盖操作栏

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清单文件中:

我正在创建一个gallery活动,我希望像在普通gallery应用程序中一样覆盖操作栏,类似于以下内容:

在styles.xml中,我创建了主题:

<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应用程序。你希望操作栏半透明,下面显示内容吗?我添加了一张我正在寻找的照片。我想你可以使用
框架布局
并在内容顶部放置一个透明背景的
工具栏