115
我想绘制一个可用于按钮的绘图。我希望它具有这种着色,其周围有2px的边框。除了我不能让边境露面边框的形状xml
一切工作就好了... ...
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="rectangle" >
<gradient android:startColor="@color/bar_clicked_dark"
android:endColor="@color/bar_clicked_light"
android:angle="90"/>
<corners android:bottomLeftRadius="0dp"
android:topLeftRadius="15dp"
android:bottomRightRadius="15dp"
android:topRightRadius="0dp" />
<stroke android:width="2px"
color="#ff00ffff" />
</shape>