【android】两个按钮的宽度各占屏幕的一半
1 <LinearLayout> 2 <Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_weight="1"/> 3 <Button android:layout_height="wrap_content" android:layout_width="fill_parent" android:layout_weight="1"/> 4 </LinearLayout>
作者:无言
如果您认为阅读这篇博客让您有些收获,不妨点击一下右下角的【推荐】
如果您希望与我交流互动,欢迎微博互粉
本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。