自分のアクティビティのレイアウトを設定するのが難しいです。私はリストの各行がアイコンを含むリストレイアウトと、各アイコンの隣に2つのEditTextビューを達成しようとしています。Androidのレイアウト:行ごとに1つの画像と2つのEditTextビュー
たとえば、Gmailのアイコンをクリックすると、ユーザーは自分のメールとパスワードをビューに入力できます。
私はいくつかのアプローチを試してきましたが、1つは機能していないようです。一番近いのは、行ごとに1つのEditTextビューですが、これは私が達成しようとしているものではありません。
ここで私のXMLを見ています。誰かが私がどのように改善できるかについての提案があればそれはすばらしいだろう。
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:padding="5dp" >
<RelativeLayout >
<ImageView
android:id="@+id/logo"
android:layout_width="150px"
android:layout_height="150px"
android:layout_alignParentTop="true"
android:layout_alignParentBottom="true"
android:src="@drawable/gm" >
</ImageView>
<EditText
android:id="@+id/secondLine"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_alignRight="@id/logo"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
>
</EditText>
<EditText
android:id="@+id/firstLine"
android:layout_width="200dp"
android:layout_height="wrap_content"
android:layout_alignRight="@id/logo"
android:layout_alignParentBottom="true"
android:layout_alignParentRight="true"
android:layout_above="@id/secondLine">
</EditText>
</RelativeLayout>
</LinearLayout>
あなたは記事[レイアウトトリック:効率的なレイアウトの作成]見たことがあります(http://developer.android.com/resources/articles/layout-tricks-efficiency.htmlを)。それはあなたがしようとしているものと全く同じように聞こえる例を持っています。 –