TextViewRadioGroup是在同一个LinearLayout中的,控件摆放方式是android:orientation="horizontal",虽然三个控件是水平摆放的,但是TextView和两个RadioButton却不在同一水平线。解决方法:

在LinearLayout中添加以下属性:

android:gravity="center_vertical"

相关文章:

  • 2022-12-23
  • 2021-09-18
  • 2021-11-13
  • 2022-02-04
  • 2021-12-17
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-06
  • 2022-12-23
  • 2022-12-23
  • 2021-06-21
  • 2021-08-07
相关资源
相似解决方案