-1

以下のように見える次のサブレイアウトがあります。基本的には、5x5マトリックスの入力を受け取るために25個のテキストを作成することですが、問題は最初EditTextに表示され、残りが表示されないことです。

Edit: 私も同じことを試しましたRelativeLayoutが、EditText要素は表示されませんでした。

これらすべてが表示されない理由を誰か説明しEditTextてもらえますか?

<LinearLayout
    android:id="@+id/convolutionMatrix"
    android:layout_width="@dimen/matrixLayoutWidthHeight"
    android:layout_height="fill_parent"
    android:layout_centerHorizontal="true"
    android:layout_centerVertical="true"
    android:layout_margin="@dimen/marginOne"
    android:background="@color/white1"
    android:padding="@dimen/marginOne" >

    <TextView
        android:id="@+id/textView1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:padding="@dimen/marginOne"
        android:text="@string/matrixTitle"
        android:textAppearance="?android:attr/textAppearanceLarge" />

    <EditText
        android:id="@+id/kernel11"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" >

        <requestFocus />
    </EditText>

    <EditText
        android:id="@+id/kernel12"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:layout_alignParentLeft="true"
        android:inputType="numberSigned" >
    </EditText>

    <EditText
        android:id="@+id/kernel13"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel14"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel15"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel21"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel22"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel23"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel24"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel25"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel31"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel32"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel33"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel34"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel35"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel41"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel42"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel43"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel44"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel45"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel51"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel52"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel53"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel54"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <EditText
        android:id="@+id/kernel55"
        android:layout_width="@dimen/matrixBoxWidthHeight"
        android:layout_height="@dimen/matrixBoxWidthHeight"
        android:inputType="numberSigned" />

    <Button
        android:id="@+id/button1"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:text="Apply Kernel Mask" />
</LinearLayout>
4

1 に答える 1

1

相対レイアウトを使用しますが、コメントのように、グラフ UI エディターに切り替えて、互いの上に移動することをお勧めします。私たち全員が最初に犯した単純な間違い。

于 2013-11-05T19:34:43.130 に答える