所以...我想添加一条类似于line with gradient的线,并创建了一个可绘制的
<?xml version="1.0" encoding="utf-8"?>
<rotate xmlns:android="http://schemas.android.com/apk/res/android"
android:fromDegrees="90"
android:toDegrees="90">
<shape
android:shape="line">
<stroke
android:color="#000000"
android:width="1dp"/>
<gradient android:startColor="#FFEE8D85"
android:endColor="#000000"/>
</shape>
</rotate>
它给出了line without gradient,我该怎么做才能得到我想要的结果呢?
1条答案
按热度按时间nbysray51#
制作可绘制的资源文件。
然后像这样涂抹