TabWidget在Android中的底部不稳定?为什么?

TabWidget在Android中的底部不稳定?为什么?,android,android-layout,android-tabs,Android,Android Layout,Android Tabs,我在底部设置了tabWidget。当我想编辑编辑文本时,键盘会弹出。但是tab小部件位于键盘上方。为了支持多屏幕,我设置了android:layout\u weight=“1.0”。之后,我遇到了这个问题,我在下面添加了布局代码。有没有办法让TabWidget稳定在底部 代码: 您可能需要调整清单中的。这控制显示软键盘时屏幕的移动方式。也许您想要调整平移而不是默认的调整大小?这有关于各种输入模式的更多信息。如果您想要类似iPhone的tab主机。 <?xml version="1.0"

我在底部设置了tabWidget。当我想编辑编辑文本时,键盘会弹出。但是tab小部件位于键盘上方。为了支持多屏幕,我设置了android:layout\u weight=“1.0”。之后,我遇到了这个问题,我在下面添加了布局代码。有没有办法让TabWidget稳定在底部

代码:



您可能需要调整清单中的。这控制显示软键盘时屏幕的移动方式。也许您想要调整平移而不是默认的调整大小?这有关于各种输入模式的更多信息。

如果您想要类似iPhone的tab主机。
<?xml version="1.0" encoding="utf-8"?>
<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">
<LinearLayout android:orientation="vertical"
    android:layout_width="fill_parent" android:layout_height="fill_parent">
    <FrameLayout xmlns:android="http://schemas.android.com/apk/res/android"
        android:id="@android:id/tabcontent" android:layout_width="fill_parent"
        android:layout_height="wrap_content" android:layout_weight="1.0">

    </FrameLayout>
    <TabWidget android:id="@android:id/tabs"
        android:layout_gravity="bottom" android:background="@drawable/gradient_black"
        android:listSelector="@color/transparent" android:layout_width="fill_parent"
        android:layout_height="63dip" />
</LinearLayout>