0
我想要一个矩形shape
没有background color
但只是笔划线。什么xml元素是关心的?如何获得没有背景色的矩形形状?
我想要一个矩形shape
没有background color
但只是笔划线。什么xml元素是关心的?如何获得没有背景色的矩形形状?
使用此:
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<solid android:color="@android:color/transparent" />
<stroke
android:width="2dip"
android:color="#1589FF" />
</shape>
背景色由<solid
标签定义,您可以将其设置为透明。绘制边框可以使用<stroke
标签
<solid android:color="@android:color/transparent" />
<stroke
android:width="1dp"
android:color="@color/stroke_color" />