两个按钮的宽度各占屏幕的一半
<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>

相关文章:

  • 2022-01-08
  • 2021-12-05
  • 2022-12-23
  • 2022-01-08
  • 2021-12-03
  • 2022-12-23
  • 2021-05-26
猜你喜欢
  • 2022-12-23
  • 2022-02-20
  • 2022-12-23
  • 2021-07-24
  • 2021-11-17
相关资源
相似解决方案