半圆
size:宽高比1:2是垂直半圆,宽高比2:1是水平半圆。
corners:4个角的任意两个角度(不小于宽高最小值)相同,且在同一边(上下左右)
android:shape="rectangle">
android:endColor="#3bf8fffd"
android:startColor="#fff3fefc"
android:type="linear"
android:angle="135"
android:useLevel="true" />
android:width="20dp"
android:height="40dp" />
android:bottomLeftRadius="20dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="20dp"
android:topRightRadius="0dp" />
1/4圆
size:宽高比1:1是1/4圆
corners:4个角的任意一个角度,不小于宽高值
android:shape="rectangle">
android:angle="90"
android:endColor="#3bf8fffd"
android:startColor="#fff3fefc"
android:type="linear"
android:useLevel="true" />
android:width="55dp"
android:height="55dp" />
android:bottomLeftRadius="0dp"
android:bottomRightRadius="0dp"
android:topLeftRadius="55dp"
android:topRightRadius="0dp" />