0

ランドスケープビューに入ると、すべてがよく見えます。分かりますか。「ライセンスタイプ」と入力するボックス。ただし、ボックスに入力すると、ビューが多少変化し、「ライセンスタイプ」をクリックすると、次のボックスに移動するボタンだけが表示されません。説明これは、その人が何をしているのかわからないことを意味します。

<?xml version="1.0" encoding="utf-8"?>

<TableRow
    android:id="@+id/tableRow1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >
    <Button
        android:id="@+id/SaveBtn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:onClick="SaveBtn_Click"
        android:text="@string/SaveStr" />

    <Button
        android:id="@+id/BackBtn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:text="@string/BackStr" />

</TableRow>

    <ScrollView
        android:id="@+id/scrollView1"
        android:layout_width="match_parent"
        android:layout_height="wrap_content" >

    <TableLayout
    android:id="@+id/tableLayout1"
    android:layout_width="fill_parent"
    android:layout_height="wrap_content" >

    <TableRow
        android:id="@+id/tableRow2"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >

        <TextView
            android:id="@+id/textView1"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/LicenceTypeStr"
            android:textAppearance="?android:attr/textAppearanceSmall" />

        <EditText
            android:id="@+id/TypeEt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:ems="10"
            android:gravity="left"
            android:hint="@string/LicenceTypeHintStr"
            android:singleLine="true" />

    </TableRow>

    <TableRow
        android:id="@+id/tableRow3"
        android:layout_width="fill_parent"
        android:layout_height="wrap_content" >

        <TextView
            android:id="@+id/textView2"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:text="@string/LicenceNumberStr"
            android:textAppearance="?android:attr/textAppearanceSmall" />

        <EditText
            android:id="@+id/NumberEt"
            android:layout_width="wrap_content"
            android:layout_height="wrap_content"
            android:layout_weight="1"
            android:ems="10"
            android:hint="@string/LicenceNumberHintStr"
            android:singleLine="true" >

            <requestFocus />
        </EditText>
    </TableRow>
  // .. more rowws

    <EditText
        android:id="@+id/ExpiryDateEt"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:layout_weight="1"
        android:ems="10"
        android:inputType="date" />

    <Button
        android:id="@+id/FrontImgBtn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/FrontImgStr" />

    <ImageView
        android:id="@+id/imageView1"
android:layout_width="300dip"
android:layout_height="200dip"
/>

    <Button
        android:id="@+id/BackImgBtn"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="@string/BackImageStr" />

        <ImageView
            android:id="@+id/imageView2"
android:layout_width="300dip"
android:layout_height="200dip"
/>

</TableLayout>

ビューはレイアウトモードになっています。これは、写真を取得して操作し、表示して、失うことのないようにするための最良の方法であることがわかったためです。私は何かが欠けているに違いありません。誰かが私を正しい方向に向けることができれば。

4

2 に答える 2

1

横向きのときにキーボードが画面全体を占有しないように指定する必要があります。

ここで私の答えをチェックしてください、それはあなたにもうまくいくでしょう(そしてこれは技術的に同じ問題の複製です)

ランドスケープモードでキーボードの半分だけを開くにはどうすればよいですか?

于 2013-02-19T01:17:50.287 に答える
1

ドレーデル博士は正しかった。ただし、この方法だけでは問題は解決しませんでした。メモのように、画面の3/4が表示されました。彼の答えは私に答えへの道を与えてくれました。

android:imeOptions = "actionDone"

各EditTextフィールド。

彼が言ったように、これも重複した質問ですが、私の答えが他の人を助けるかもしれないので、私はそれを残します。

于 2013-02-19T02:25:20.173 に答える