【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>

 

posted @ 2014-05-13 19:42  HuijunZhang  阅读(3389)  评论(0编辑  收藏  举报
中国