窗体两个按钮各占一半

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

posted @ 2012-04-08 21:39  sfshine  阅读(214)  评论(0编辑  收藏  举报