RadioGroupRadioButton中的按钮一般是上下结构 ,要想他们按照左右结构放置, 我们就要改变RadioGroup中的orientation。如下设置
<RadioGroup
android:id="@+id/xingfudi" //这是RadioGroup的名字 android:layout_width=“wrap_content”
android:layout_height=“wrap_content”
android:orientation=“horizontal” >
怎么让RadioGroup中的选项按钮变成左右排版
最新推荐文章于 2023-09-18 09:27:21 发布