Android 有没有办法使单选按钮水平而不是垂直绘制?
在小型设备上,“确定”按钮不会在“我的”对话框中绘制。为了拯救罗马,我想知道是否有办法让我的单选按钮画成水平的(这样按钮就在同一行),而不是垂直的。我的xml代码Android 有没有办法使单选按钮水平而不是垂直绘制?,android,Android,在小型设备上,“确定”按钮不会在“我的”对话框中绘制。为了拯救罗马,我想知道是否有办法让我的单选按钮画成水平的(这样按钮就在同一行),而不是垂直的。我的xml代码 <TextView android:layout_width="wrap_content" android:layout_height="wrap_content" android:text="Auto Play Back
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Auto Play Back"
android:layout_gravity="center"
android:textColor="#fffff109"
android:textStyle="bold"
android:textSize="24px"
/>
<RadioGroup
android:id="@+id/radioSex"
android:layout_width="wrap_content"
android:layout_height="wrap_content" >
<RadioButton
android:id="@+id/radioOn"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="On"
android:checked="true" />
<RadioButton
android:id="@+id/radioOff"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Off" />
</RadioGroup>
</LinearLayout>
是的,RadioGroup具有可设置的方向属性
android:orientation="horizontal"
将此添加到RadioGroup中,它将解决您的问题 副本??