& lt?xml?version="1.0 "?編碼="utf-8 "?& gt
& lt外形?xmlns:Android = "/apk/RES/Android "?& gt
& lt!- ?裏脊?-& gt;
& lt困境
android:radius="9dp "
android:topLeftRadius="2dp "
android:topRightRadius="2dp "
android:bottomLeftRadius="2dp "
Android:bottomRightRadius = " 2dp "/& gt;& lt!- ?設置圓角半徑?-& gt;
& lt!- ?漸變?-& gt;
& lt梯度
Android:start color = " @ Android:color/white "
Android:center color = " @ Android:color/black "
Android:end color = " @ Android:color/black "
android:useLevel="true "
android:angle="45 "
android:type="radial "
Android:centex = " 0 "
android:centerY="0 "
Android:gradientRadius = " 90 "/& gt;
& lt!- ?區間?-& gt;
& lt填料
android:left="2dp "
android:top="2dp "
android:right="2dp "
Android:bottom = " 2dp "/& gt;& lt!- ?各個方向的間距?-& gt;
& lt!- ?尺寸?-& gt;
& lt大小
android:width="50dp "
Android:height = " 50dp "/& gt;& lt!- ?寬度和高度?-& gt;
& lt!- ?填充?-& gt;
& lt固體
Android:color = " @ Android:color/white "/& gt;& lt!- ?填充的顏色?-& gt;
& lt!- ?中風?-& gt;
& lt中風
android:width="2dp "
Android:color = " @ Android:color/black "
android:dashWidth="1dp "
Android:dash gap = " 2dp "/& gt;
& lt/shape & gt;