Android实现渐变背景颜色shape渐变

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010838785/article/details/89019999
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
       android:shape="rectangle">
    <gradient
        android:angle="45"
        android:endColor="#FE8C00"
        android:startColor="#EF3C22"
        android:type="linear"/>
    <corners
        android:bottomLeftRadius="8dp"
        android:bottomRightRadius="8dp"
        android:topLeftRadius="8dp"
        android:topRightRadius="8dp"/>
</shape>

猜你喜欢

转载自blog.csdn.net/u010838785/article/details/89019999
今日推荐