Tag: 中风

在形状边框xml

我正在尝试使用drawable来使用button。 我希望它有这个着色,周围有一个2px的边框。 一切正常,除非我不能让边框显示出来… <?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>