开发者

Android Layouts: Moving Items

开发者 https://www.devze.com 2023-01-18 02:04 出处:网络
I was wondering how one might align two or mor开发者_开发技巧e UI elements to the bottom of a screen instead of them just stacking as they normally do.Something like this:

I was wondering how one might align two or mor开发者_开发技巧e 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>
0

精彩评论

暂无评论...
验证码 换一张
取 消