Я пытаюсь создать макет, но я не слишком уверен, как точно описать, что я хочу делать. Поэтому я создал изображение ниже, чтобы описать, что я пытаюсь.Элементы управления 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>
Здравствуй Paresh сэр Ji .. – Lucifer
@Lucifer да дорогой .. Роджер :) –
приходит в Каузальный чат. – Lucifer