I need to convert this linear gradient into xml file through python script-
linear-gradient (160.0deg, #FF7C1E 8.49%, #FF5C00 23.19%, #FF3B01 43.22%, #FF0301 91.51%)
I found similar questions, but all are giving programmatically option only. Please help me here that in anyway how can i use this linear-gradient into xml file of android resources.
I see in android linear gradient we have limitations, can have only three colors without percentage like this but that is not what i want.
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android">
<gradient
android:angle="94"
android:startColor="#2E75FF"
android:centerColor="#0188FE"
android:endColor="#093E8D"
android:type="linear"
/>
</shape>