1

最初に 4 つの編集テキストを含む 2 つの線形レイアウトと、ボタンを含む 2 つ目の線形レイアウトがあります。

    <LinearLayout android:layout_width="fill_parent"  xmlns:android="http://schemas.android.com/apk/res/android"
        android:layout_height="65dp"  android:orientation="horizontal" android:id="@+id/l_fields"
        android:stretchColumns="*"  android:layout_weight="1">
        <TableRow android:orientation="horizontal" >
            <AutoCompleteTextView style="@style/orderDropDownWidth" android:layout_weight="5" android:textColor="@color/black"
                    android:layout_height="wrap_content" android:completionThreshold="1"
                    android:id="@+id/eo_article" android:imeOptions="flagNoExtractUi"   >
            </AutoCompleteTextView>
            <EditText android:inputType="numberSigned" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/eo_sale" android:layout_weight="1"
            android:imeOptions="flagNoExtractUi"    android:focusable="true" android:focusableInTouchMode="true">   </EditText>
            <EditText android:inputType="numberSigned" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/eo_promo" android:layout_weight="1"
            android:imeOptions="flagNoExtractUi"></EditText>
            <EditText android:inputType="numberDecimal" android:layout_height="wrap_content" android:layout_width="wrap_content" android:id="@+id/eo_disc" android:layout_weight="1"
             android:imeOptions="flagNoExtractUi"></EditText>
        </TableRow>
    </LinearLayout>
<LinearLayout android:layout_width="fill_parent" android:id="@+id/linearLayoutadd" android:layout_height="55dp" 
    android:orientation="horizontal"  android:gravity="right" android:layout_weight="1" >
    <LinearLayout android:orientation="horizontal"  android:gravity="right" android:layout_weight="1" 
                  android:layout_width="wrap_content" android:layout_height="fill_parent">                        
        <Button android:text="@string/LINE_ADD" android:id="@+id/eo_baddline" android:layout_width="wrap_content" 
             android:gravity="top" style="@style/orderlineButtonSalePromo"           ></Button>
    </LinearLayout>

これは結果です: ここに画像の説明を入力

ただし、キーボードが表示されている場合、ボタンは非表示です。

ここに画像の説明を入力

キーボードが開いているときにボタンを強制的に表示するにはどうすればよいですか?

4

1 に答える 1

0

スクロールビューで線形レイアウトを設定する必要があります...要素がスクロールビュー内にある場合、キーボードが使用されている場合、ボタンはキーボードのトップレベルに移動します

于 2013-01-16T11:58:25.003 に答える