Greetings From Canada.
I was wondering how one might align two or more UI elements to the bottom of a screen instead of them just stacking as they normally do.
Greetings From Canada.
I was wondering how one might align two or more UI elements to the bottom of a screen instead of them just stacking as they normally do.
Something like this:
<RelativeLayout
android:id="@+id/myBottomLayout"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_alignParentBottom="true">
<View
android:id="@+id/leftItem"
android:layout_height="wrap_content"
android:layout_width="wrap_content">
<View
android:id="@+id/rightItem"
android:layout_height="wrap_content"
android:layout_width="wrap_content"
android:layout_toRightOf="id/leftItem">
</RelativeLayout>