私は<ScrollView>
レイアウトを持っています:
<?xml version="1.0" encoding="utf-8"?>
<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
android:id="@+id/my_scrollview"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<LinearLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<EditText
android:id="@+id/input_one"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:inputType="number" >
<EditText
android:id="@+id/input_two"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:inputType="number" >
<EditText
android:id="@+id/input_three"
android:layout_width="300dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:inputType="number" >
<Button
android:id="@+id/ok_btn"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_gravity="center"
android:layout_marginTop="20dp"
android:text="@string/ok_str" />
</LinearLayout>
</ScrollView>
上記のように、単純なレイアウトは 3 つの入力フィールドと「OK」ボタンで構成されています。
上記のレイアウトでアプリを実行します。最初の入力フィールド ( ) をタップする@+id/input_one
と、画面の下部からソフト キーボードがポップアップし、3 番目の入力フィールドと [OK] ボタンが非表示になります。
を使っているので、ソフトキーボードで隠れ<ScrollView>
ている3番目の入力欄と「OK」ボタンを見るためにページを上にスクロールできると思っていたのですが、ページがスクロールできません。なんで?それを取り除く方法は?基本的に、すべての入力フィールドと [OK] ボタンが表示されるソフト キーボードも表示されるようにしたいと考えています。