2
ソフトキーボードをアップスライド私のXMLコードは次のとおりです。下部のバーは、Android
<?xml version="1.0" encoding="utf-8"?>
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="vertical"
android:layout_width="fill_parent" android:layout_height="fill_parent">
<ScrollView
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="430dp"
android:fadingEdge="none"
android:layout_weight="1.0"
>
.......LinearLayout
</ScrollView>
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="wrap_content"
android:layout_height="60dp"
android:background="@drawable/tabbarbottom"
>
<LinearLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:orientation="horizontal"
android:layout_width="fill_parent"
android:layout_height="fill_parent"
>
<Button
android:id="@+id/jobs"
android:text="About Us"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:textColor="@drawable/white"
android:background="@android:color/transparent"
android:layout_centerVertical="true"
android:layout_weight="1"
android:textStyle="bold"
android:textSize="12.5sp"
></Button>
<Button
android:id="@+id/aboutus"
android:text="Value"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:textColor="@drawable/white"
android:layout_toRightOf="@id/jobs"
android:background="@android:color/transparent"
android:layout_centerHorizontal="true"
android:layout_centerVertical="true"
android:layout_marginLeft="10dp"
android:textStyle="bold"
android:textSize="12.5sp"
android:layout_weight="1"
></Button>
<Button
android:id="@+id/benefits"
android:text="History"
android:layout_width="wrap_content"
android:layout_height="fill_parent"
android:textColor="@drawable/white"
android:layout_toRightOf="@id/aboutus"
android:background="@android:color/transparent"
android:layout_centerVertical="true"
android:layout_weight="1"
android:textStyle="bold"
android:textSize="12.5sp"
></Button>
</LinearLayout>
</RelativeLayout>
</LinearLayout>
問題はこれまで、ユーザーが下のバーでもキーボードで立ち上がっ入力するのEditTextに触れたときにということです。
解決方法
おかげ
いいえ、私はそれを設定していません。android:name = "。SearxhJobs" android:configChanges = "orientation | keyboardHidden"アンドロイド:finishOnTaskLaunch = "true"マニフェスト内のこれらのプロパティ – Udaykiran
あなたはマニフェストの中でアンドロイド:windowSoftInputMode = "adjustPan"を設定するだけです。もう一度やり直してください:) – duonghv
これは完璧に働いています:) – Udaykiran