How can I create Drawable from XML source code provided as a string?
I found the following method:
Drawable drawable = Drawable.createFromXml();
But it requires to provide XmlResourceParser - and I still don't see a way to create it from XML source code.
Sample of the XML source code:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
    <item>
        <bitmap
            android:src="@drawable/icon"
            android:gravity="right"
            />
    </item>
</layer-list>