设置android时如何滚动我的布局:windowSoftInputMode ="adjustPan"?

Mic*_*elP 6 android android-layout

我的活动有一个顶栏和一个底栏.topbar和bottom bar之间的空间我有一个linearlayout,里面有几个edittext视图.因为我不希望每次软键盘出现时我的布局都会调整大小,所以我为manifest中的活动设置了android:windowSoftInputMode ="adjustPan".但是当打开软键盘时,我想向下滚动以选择另一个要输入的编辑文本,这是不允许我这样做的.我只能在关闭软键盘时选择底部的edittext.这非常烦人且不方便.如何才能同时获得软键盘的scrollview和ajustpan模式?

请帮帮我.非常感谢.

C. *_*ung 1

把它们放在这样的EditText位置:ScrollView

<ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
    android:id="@+id/scrollView1"
    android:layout_width="match_parent"
    android:layout_height="wrap_content" >

    <LinearLayout
        android:id="@+id/linearLayout1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        android:orientation="vertical" >

        <EditText
            android:id="@+id/editText1"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" >

            <requestFocus />
        </EditText>

        <EditText
            android:id="@+id/editText2"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

        <EditText
            android:id="@+id/editText3"
            android:layout_width="match_parent"
            android:layout_height="wrap_content" />

    </LinearLayout>

</ScrollView>
Run Code Online (Sandbox Code Playgroud)