I need to create a drawable with some special behavior on resizing:
is that even possible ? and I don't want to use nine-patch and I've tried this :
<?xml version="1.0" encoding="utf-8"?>
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item>
<shape android:shape="rectangle">
<size android:width="10dp" />
<solid android:color="@color/black" />
</shape>
</item>
<item android:left="10dp">
<shape android:shape="rectangle">
<size android:width="10dp" />
<solid android:color="@color/blue" />
</shape>
</item>
</layer-list>