android虚线边框_Android通过代码实现虚线或者虚线框shape-Fun言
虚线android:shape=”line”>android:width=”1dp”android:color=”#f3f3f3″android:dashWidth=”3dp”android:dashGap=”3dp” />虚线框android:shape=”rectangle”>android:width=”1dp”android:color=”#f3f3f3″android:
虚线
android:shape=”line”>
android:width=”1dp”
android:color=”#f3f3f3″
android:dashWidth=”3dp”
android:dashGap=”3dp” />
虚线框
android:shape=”rectangle”>
android:width=”1dp”
android:color=”#f3f3f3″
android:dashWidth=”3dp”
android:dashGap=”3dp” />
虚线圆
android:shape=”oval”>
android:width=”1dp”
android:color=”#f3f3f3″
android:dashWidth=”3dp”
android:dashGap=”3dp” />
顶部虚线
android:left=”-2dp”
android:right=”-2dp”
android:bottom=”-2dp”>
android:width=”1dp”
android:color=”#f3f3f3″
android:dashWidth=”3dp”
android:dashGap=”3dp” />
底部虚线
android:left=”-2dp”
android:right=”-2dp”
android:top=”-2dp”>
android:width=”1dp”
android:color=”#f3f3f3″
android:dashWidth=”3dp”
android:dashGap=”3dp” />
使用
android:background=”@drawable/shape_dash_line”
更多推荐
所有评论(0)