开发者

Android Layouts: Moving Items

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜