<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:startColor="#FF9100"
android:endColor="#FF6600"
android:angle="0"/>
</shape>
angle參數
android:angle="0"http://效果是:是從左到右,按照開始顏色到結束顏色來渲染的
android:angle="90"http://效果是:是從下到上,按照開始顏色到結束顏色來渲染的
android:angle="180"http://效果是:是從上到下,按照開始顏色到結束顏色來渲染的
android:angle="270"http://效果是:是從右到左,按照開始顏色到結束顏色來渲染的