现在的位置: 首页 > 综合 > 正文

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

2012年11月09日 ⁄ 综合 ⁄ 共 251字 ⁄ 字号 评论关闭
两个按钮的宽度各占屏幕的一半
<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>

抱歉!评论已关闭.