我想创建一个布局,但我不太确定如何描述我想要做什么。所以我创建了下面的图片来描述我正在尝试的东西。Android布局控件并排?
我失去了如何获得和微调的的EditText旁边的ImageView像我的形象。
这是我的XML到目前为止。
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="wrap_content"
android:layout_height="wrap_content">
<RelativeLayout
android:layout_width="fill_parent"
android:layout_height="wrap_content">
<Button android:id="@+id/btnCancel"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentLeft="true"
android:text="Cancel"
/>
<Button android:id="@+id/btnAdd"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_alignParentRight="true"
android:text="Add"
/>
</RelativeLayout>
<RelativeLayout>
<ImageView
android:id="@+id/imgExercise"
android:layout_width="50px"
android:layout_height="50px"
android:layout_alignParentTop="true"
android:layout_alignParentLeft="true"
/>
<Spinner
android:id="@+id/spCategory"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
/>
<EditText
android:id="@+id/etName"
android:hint="Name"
android:layout_alignParentTop="true"
android:layout_alignParentRight="true"
/>
</RelativeLayout>
<EditText
android:id="@+id/etDescription"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
android:lines="5"
android:gravity="top"
android:hint="Description"
/>
</RelativeLayout>
你好帕雷什姬先生.. – Lucifer 2011-12-26 06:13:29
@Lucifer是亲爱的..罗杰:) – 2011-12-26 06:18:58
来到因果聊天室。 – Lucifer 2011-12-26 06:20:55