Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/197.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
TabWidget在Android中底部不稳定_Android_Layout_Tabs_Tabwidget - Fatal编程技术网

TabWidget在Android中底部不稳定

TabWidget在Android中底部不稳定,android,layout,tabs,tabwidget,Android,Layout,Tabs,Tabwidget,我创建了一个布局,其中TabWidget位于底部。布局代码如下 <TabHost xmlns:android="http://schemas.android.com/apk/res/android" android:id="@android:id/tabhost" android:layout_width="fill_parent" android:layout_height="fill_parent"> <RelativeLayout android:layout_

我创建了一个布局,其中TabWidget位于底部。布局代码如下

<TabHost xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@android:id/tabhost"
android:layout_width="fill_parent"
android:layout_height="fill_parent">

<RelativeLayout
    android:layout_height="fill_parent"
    android:layout_width="fill_parent">

    <FrameLayout
        android:id="@android:id/tabcontent"
        android:layout_width="0dp"
        android:layout_height="0dp"/>

    <android.support.v4.view.ViewPager
        android:id="@+id/viewpager"
        android:layout_width="fill_parent"
        android:layout_height="fill_parent"
        android:layout_marginBottom="48dp"/>
    <TabWidget
        android:id="@android:id/tabs"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content"

        android:layout_alignParentBottom="true"
        android:layout_gravity="center_horizontal" />
</RelativeLayout>

但当软键盘出现时,键盘上就会出现TabWidget。如何使其稳定,并始终位于软键盘后面。

尝试在特定活动标签android:WindowsOfInputMode=AdjustNothingHanks bro的Menifest中添加以下内容