控件宽度占父控件的1/3

在父控件中设:
android:weightSum=“3”
在这里插入图片描述
在子控件中设:
android:layout_width=“0dip”
android:layout_height=“match_parent”
android:layout_weight=“1”
在这里插入图片描述

参考:
https://blog.csdn.net/android_cmos/article/details/50783745
http://www.cnblogs.com/loaderman/p/6525078.html

猜你喜欢

转载自blog.csdn.net/puspos/article/details/84196986