私はEditTextからいくつかのビューを持つレイアウトを持っています。レイアウトは簡単に1ページに収まりますが、ソフトキーボードが消えているときはレイアウトはスクロールしません。 は、ここに私のレイアウトの要約です:Android:ScrollViewがキーボードでスクロールしない
<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/background" >
<ScrollView
android:id="@+id/ScrollView1"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:layout_alignParentTop="true" >
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="vertical" >
<CheckBox/>
<TextView/>
<LinearLayout>
<EditText>
<requestFocus />
</EditText>
</LinearLayout>
<TextView/>
<LinearLayout>
<Spinner/>
</LinearLayout>
</LinearLayout>
</ScrollView>
<Button
android:layout_alignParentBottom="true" />
</RelativeLayout>
そして、私のマニフェストに私は属性を宣言している:それは動作しませんし、それが動作しないことを確認する方法をなぜ
android:windowSoftInputMode="adjustResize|stateHidden"
誰でも知っていますか?
ありがとうございます!
Android 5の場合、この関連記事をチェックアウトしてください:[Android - キーボードがAndroid版5.0(ロリポップ)のときにスクロールビューを調整](http://stackoverflow.com/questions/27167176/android-adjust-scrollview-when-キーボードのアップです - アンドロイド-5-0-ロールポップ) –