I am looking at placing 2 views next to each other. 1 View
has a fixed width
while the other should take up the rest of the space (variable).
I have currently set the layout with the fixed width view
with the alignParentRight="true"
that is fine however it overlaps the variable width view.
I would like them to be side-by-side. Maybe a Horizontal LinearLayout
is best for this task?
What I have currently is:
<ListView
android:id="@+id/list"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
<Selector
android:id="@+id/side_selector"
android:layout_width="30dp"
android:layout_height="match_parent"
android:layout_alignParentRight="true"
android:layout_alignParentEnd="true"
/>