Android 返回onresume时如何隐藏标题栏?

Android 返回onresume时如何隐藏标题栏?,android,android-titlebar,Android,Android Titlebar,当我运行应用程序时,离开应用程序,然后返回(最小化或手机进入睡眠状态),即使我尝试使用,我的应用程序布局上面似乎有一个标题栏 android:theme=“@android:style/theme.NoTitleBar.Fullscreen” 我怎样才能解决这个问题 补充: 我知道这个问题的原因是关于广告,如果我把广告放在屏幕顶部,一切都是这样的: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android

当我运行应用程序时,离开应用程序,然后返回(最小化或手机进入睡眠状态),即使我尝试使用,我的应用程序布局上面似乎有一个标题栏

android:theme=“@android:style/theme.NoTitleBar.Fullscreen”

我怎样才能解决这个问题

补充:

我知道这个问题的原因是关于广告,如果我把广告放在屏幕顶部,一切都是这样的:

<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/LinearLayout"
android:layout_width="fill_parent"
android:layout_height="fill_parent" android:orientation="vertical">
<LinearLayout 
android:id="@+id/LinearLayout1"
android:orientation="vertical" android:layout_height="50dp" android:layout_width="fill_parent">
<com.google.ads.AdView 
    xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
    android:id="@+id/adView1"
    android:layout_width="wrap_content"
    android:layout_height="wrap_content"
    ads:adSize="BANNER"
    ads:adUnitId="a14e854c3d48d14"
     android:layout_gravity="center_horizontal"/>
     </LinearLayout>
     <TabHost 
     android:layout_below="@+id/adView1"
android:id="@android:id/tabhost"
android:layout_width="fill_parent" 
android:layout_height="fill_parent" 
android:layout_weight="2">
<ViewFlipper android:id="@+id/viewFlipperContent"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
    <LinearLayout android:orientation="vertical"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent">
        <FrameLayout android:id="@android:id/tabcontent"
            android:layout_width="fill_parent"
            android:layout_height="wrap_content"
            android:layout_weight="1" />
        <TabWidget android:id="@android:id/tabs"
            android:layout_width="fill_parent"
            android:layout_height="80dp"
            android:layout_weight="0"
            android:background="@drawable/bg_tab_menu"
            />
    </LinearLayout>
</ViewFlipper>
   </TabHost>
   </LinearLayout>`

`

但问题是当我试图将广告移到屏幕底部时,我该怎么办

尝试使用相对布局并将添加视图设置为底部。10-20 14:10:12.510:错误/AndroidRuntime(16633):原因:java.lang.RuntimeException:您的内容必须具有id属性为“android.R.id.TabHost”的TabHost检查