converter from gradient image todrawable xml file on Android
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
generateDrawableXML.py

README.md

GenerateXMLFromGradientImage

convert from gradient image todrawable xml file on Android

Input

Output

<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
    android:shape="rectangle">
    <gradient
        android:angle="270"
        android:type="linear"
        android:startColor="#FFFFC081"
        android:endColor="#FFFFA349"
        android:centerColor="#FFFF8101"
        android:centerY="0.6"
        />
</shape>