Rumah > Soal Jawab > teks badan
迷茫2017-04-18 10:55:30
Ia telah diselesaikan. Kod bentuk boleh diselesaikan dengan menetapkan imej bentuk latar belakang seperti berikut
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android=" http://schemas.android.com/apk/res/android"
android:shape="rectangle">
<sudut
android:topLeftRadius="100dp"
android:topRightRadius="100dp"
android:bottomRightRadius="100dp"
android:bottomLeftRadius="100dp">
</corners>
<strok
android:width="3dp"
android:color="#bebebe">
</stroke>
</shape>
PHP中文网2017-04-18 10:55:30
Lukis dengan bentuk
<?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>