So...I wanted to add a line that looks like this line with gradient and have created a drawable
<?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>
which gives this result line without gradient what do I do to get the desired result I want?