Мне нужно иметь Edittext
рядом с Search button
. Edittext
должен заполнить как можно большую ширину, кнопка должна быть вправо и быть достаточно большой, чтобы иметь текст.
Теперь он выглядит следующим образом:
[EDIT TEXT][Search]
но должен выглядеть следующим образом:
[.......EDIT TEXT.......][Search]
Вот XML
:
<RelativeLayout android:id="@+id/RelativeLayout01" android:layout_width="fill_parent" android:layout_height="wrap_content">
<EditText android:id="@+id/search_box"
android:layout_alignParentLeft="true"
android:layout_centerVertical="true"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:hint="type to filter"
android:inputType="text"
android:maxLines="1" />
<Button android:id="@+id/search_text"
android:layout_toRightOf="@id/search_box"
android:text="Search"
android:layout_width="wrap_content"
android:layout_height="wrap_content"/>
</RelativeLayout>