Android的虚线边框与填充 [英] android dashed border with padding

查看:1050
本文介绍了Android的虚线边框与填充的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个RadioGroup中
我想补充一个虚线描边(畦?)有一些填充。

i have a RadioGroup I would like to add a dashed stroke(boder?) with some padding.

无线电布顿的背景是

<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item android:drawable="@drawable/navigation"/>
    <item >
        <shape>
            <solid android:color="#00000000"/>
            <stroke android:color="#ffffff"
                    android:dashGap="5dp"
                    android:dashWidth="5dp"/>
        </shape>
    </item>
</layer-list>

第二项 - 我学尝试画虚线

The second item - is my attemp to draw dashed line.

我究竟做错了什么?

推荐答案

尝试添加的android:宽=1dip你的&LT;中风&GT ; 标签

这篇关于Android的虚线边框与填充的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆