有没有办法在无线电波圈和左边框之间留出空格?我试着给边距,但它不工作,我也试着给填充,但它增加了文本和按钮之间的间距。
无线xml代码:
<LinearLayout
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioGroup
android:id="@+id/radioGroup1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:orientation="horizontal">
<RadioButton
android:id="@+id/chkIos"
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:layout_marginStart="@dimen/_12sdp"
android:layout_marginLeft="@dimen/_12sdp"
android:layout_marginEnd="@dimen/_5sdp"
android:layout_marginRight="@dimen/_5sdp"
android:layout_weight="1"
android:background="@drawable/option_layout"
android:button="@drawable/custom_checkbox"
android:gravity="center"
android:padding="@dimen/_12sdp"
android:text="1211asd3"
android:textColor="@color/black" />
<RadioButton
android:id="@+id/radio1"
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:background="@drawable/option_layout"
android:button="@drawable/custom_checkbox"
android:layout_marginStart="@dimen/_42sdp"
android:padding="@dimen/_12sdp"
android:text="RadioButton2"
android:layout_marginLeft="@dimen/_42sdp" />
<!--<TextView-->
<!--android:layout_weight="1"-->
<!--android:layout_width="match_parent"-->
<!--android:layout_height="wrap_content" />-->
</RadioGroup>
</LinearLayout>
有谁知道怎么做吗?
发布于 2019-02-01 07:10:10
尝试从导入图像,而不是直接将图像粘贴到可绘制的文件夹中
File -> new -> Image Asset
它将向您显示以下对话框,您需要在其中选择图标类型作为操作栏和选项卡图标,并使用填充控件添加填充。默认图标中有一些填充,尝试添加至少5%的填充,如果需要更多空间,请更改值
https://stackoverflow.com/questions/54474165
复制相似问题