【android】两个按钮的宽度各占屏幕的一半

<LinearLayout> 

<Button 
android:layout_height="wrap_content" 
android:layout_width="fill_parent" 
android:layout_weight="1"/> 
<Button 
android:layout_height="wrap_content"
 android:layout_width="fill_parent" 
android:layout_weight="1"/> 

</LinearLayout>



android:layout_weight="1"
 你懂的

你可能感兴趣的:(【android】两个按钮的宽度各占屏幕的一半)