Android Notes on Styles

@android:style/Widget.ProgressBar.Small 

<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape
="rectangle">
<gradient
android:startColor="@color/background_start"
android:endColor
="@color/background_end"
android:angle
="90" />
</shape>

shape: 定义形状

startColor: 起始颜色

endColor: 结束颜色

angle: 从左到右为零度的向量逆时针旋转的角度



原文地址:https://www.cnblogs.com/lavieenrose/p/2344666.html