【问题标题】:How to overlay android action bar?如何覆盖android操作栏?
【发布时间】:2014-08-19 17:10:52
【问题描述】:

我正在尝试弄清楚如何摆脱白条

另外,覆盖底部操作栏是否也会隐藏顶部的状态栏?那太好了,因为我希望全屏显示图像。

这是我当前的 .xml 文件的样子:

   <?xml version="1.0" encoding="UTF-8"?>
      <RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/containerView"
    android:background="@android:color/transparent"    
    android:layout_width="fill_parent"
    android:layout_height="fill_parent">



    <LinearLayout android:id="@+id/subContainer"
        android:layout_height="fill_parent" 
        android:layout_width="fill_parent"
        android:gravity="center_horizontal"
        android:orientation="vertical">


        <WebView  xmlns:android="http://schemas.android.com/apk/res/android"
            android:id="@+id/webView"
            android:layout_width="fill_parent"
            android:layout_height="fill_parent">
        </WebView>

    </LinearLayout>



   </RelativeLayout>

请告诉我我需要添加什么。

【问题讨论】:

标签: android android-layout android-activity android-actionbar


【解决方案1】:

更改 manifest.xml 中的主题

<application
    .......
    .......
    android:theme="@android:style/Theme.Holo.NoActionBar" >

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-21
    • 1970-01-01
    • 2013-01-04
    • 2020-09-10
    • 2014-10-31
    • 2015-03-16
    相关资源
    最近更新 更多