84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
请问各位那个已签到的按钮是怎么做出来的(背景透明但是外围有一圈不透明的环绕线)。
认证高级PHP讲师
It has been solved. The shape code can be solved by setting the background shape image as follows<?xml version="1.0" encoding="utf-8"?><shape xmlns:android="http://schemas. android.com/apk/res/android"
android:shape="rectangle"><corners
android:topLeftRadius="100dp" android:topRightRadius="100dp" android:bottomRightRadius="100dp" android:bottomLeftRadius="100dp">
</corners><stroke
android:width="3dp" android:color="#bebebe">
</stroke></shape>
Draw with shape
<?xml version="1.0" encoding="utf-8"?> <shape android:shape="rectangle" xmlns:android="http://schemas.android.com/apk/res/android"> <solid android:color="@android:color/transparent"/> <stroke android:color="@android:color/darker_gray" android:width="1dp"/> <corners android:radius="20dp"/> </shape>
It has been solved. The shape code can be solved by setting the background shape image as follows
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas. android.com/apk/res/android"
android:shape="rectangle">
<corners
</corners>
<stroke
</stroke>
</shape>
Draw with shape