You can use something like this:
<?xml version="1.0" encoding="utf-8"?> <layer-list xmlns:android="http://schemas.android.com/apk/res/android" > <item> <shape android:shape="rectangle" > <solid android:color="@color/yellow_color"/> </shape> </item> <item> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="45" android:pivotX="85%" android:pivotY="135%"> <shape> <solid android:color="@color/brown_color" /> </shape> </rotate> </item> <item> <rotate xmlns:android="http://schemas.android.com/apk/res/android" android:fromDegrees="45" android:pivotX="-35%" android:pivotY="85%"> <shape android:shape="rectangle"> <solid android:color="@color/brown_color" /> </shape> </rotate> </item> </layer-list>
Two rotating rectangles do the job of filling the brown side in your image.
source share