I have this:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android" >
<item android:height="4dp" android:gravity="bottom"> // this height not available under api 23
<shape android:shape="rectangle" >
<size
android:height="4dp"/>
<corners android:bottomLeftRadius="0dp"
android:topLeftRadius="0dp"
android:bottomRightRadius="360dp"
android:topRightRadius="360dp">
</corners>
<gradient
android:startColor="another_color" // Fake colors
android:endColor="one_color"/>
</shape>
</item>
</layer-list>
I've added size to the shape from other post recommendation but not working. I need my gradient to make 4dp of height only