TabwidgetはAndroidの下部に安定していませんか?なんで?
-
27-09-2019 - |
質問
TabWidgetを下に設定します。編集を編集すると、キーボードが上昇します。しかし、タブウィジェットはキーボードの上にあります。複数の画面をサポートするには、Android:layout_weight = "1.0"を設定します。その後、この問題が発生しました。レイアウトコードを以下に追加しました。底にtabwidgetを安定して作るという考えはありますか?
コード:
<?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>
解決
調整することができます WindosoftInputMode あなたのマニフェストで。これにより、ソフトキーボードが表示されたときの画面がどのようにシフトするかを制御します。おそらく、デフォルトのadjustresizeの代わりにパンを調整したいですか?これ ページ さまざまな入力モードに関する詳細情報があります。
所属していません StackOverflow