3

Linearlayout には 4 つの Edittext フィールドがあります。仮想キーボードを開くと、最初の edittext フィールドを表示できません。2 番目のビューからスクロールできます。最初のビューは部分的に表示されます。これを解決する方法。よろしくお願いします。

<ScrollView android:layout_height="fill_parent"
    android:layout_width="fill_parent" android:id="@+id/scrlLogin"
    android:layout_below="@+id/Title" android:background="@drawable/screenbackground"
    android:scrollbars="none">
    <LinearLayout android:id="@+id/linearLayout1"
        android:layout_width="fill_parent" android:layout_height="wrap_content"
        android:orientation="vertical" android:layout_gravity="center">

             ..............
</LinearLayout >
</ScrollView >

マイ画面リンクはこちら

通常画面

仮想キーボードあり

4

1 に答える 1

2

時間を無駄にしないで

android:windowSoftInputMode="adjustPan"

メインアクティビティの AndroidManifest.xml に。

于 2012-10-16T07:10:47.903 に答える