首页 > 移动平台 > 详细

Android RelativeLayout中实现控件平分屏幕

时间:2014-05-29 20:25:42      阅读:1212      评论:0      收藏:0      [点我收藏+]
1
<!--
1
RelativeLayout 达到平分效果
1
-->
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<br><RelativeLayout
    android:layout_width="fill_parent"
    android:layout_height="wrap_content">
    <View<br>     android:id="@+id/placeholder"
        android:layout_width="0dp"
        android:layout_height="0dp"
        android:layout_centerHorizontal="true"/>
    <Button
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_alignRight="@id/placeholder"
        android:layout_alignParentLeft="true"
        android:text="Left"/>
    <Button
        android:layout_width="0dp"
        android:layout_height="wrap_content"
        android:layout_alignLeft="@id/placeholder"
        android:layout_alignParentRight="true"
        android:text="Right"/>
</RelativeLayout>

Android RelativeLayout中实现控件平分屏幕,布布扣,bubuko.com

Android RelativeLayout中实现控件平分屏幕

原文:http://www.cnblogs.com/itinn/p/3758263.html

(2)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!