Is TabWidget unstable at bottom of Android? What for?

I set my tabWidget below. When I want to edit edittext, the keyboard will pick up. But the tab widget is above the keyboard. To support multi-screen, I set android: layout_weight = "1.0". After that I got this problem, I added my layout code below. Any idea to make TabWidget stable at the bottom?

the code:

<?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>

+3
source share
1 answer

windowSoftInputMode . , , . , AdjustPan customResize ? .

+4

Source: https://habr.com/ru/post/1749980/


All Articles