I want to have a button at the rigth of the screen, and an edittext which take all the place it can take at the left of the button. How can I do?
This xml print me the button at the left of the screen but nothing before :/
<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
android:layout_width="fill_parent"
android:layout_height="wrap_content"
>
<Button
android:id="@+id/index_bouton_recherche"
android:layout_width="45px"
android:layout_height="45px"
android:background="@drawable/loupe"
/>
<EditText
android:id="@+id/index_champs_recherche"
android:layout_width ="fill_parent"
android:layout_height="wrap_content"
android:maxLines="1"
android:layout_toLeftOf="@id/index_bouton_recherche"
/>