<layer-list xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_parent"> <item> <shape android:shape="rectangle"> <solid android:color="#AAEEEEEE"/> <corners android:radius="2dp" /> </shape> </item> <item android:bottom="1dp"> <shape android:shape="rectangle"> <solid android:color="#AACCCCCC"/> <corners android:radius="2dp" /> </shape> </item> <item android:left="1dp" android:right="1dp" android:top="0dp" android:bottom="2dp"> <shape android:shape="rectangle"> <solid android:color="@android:color/white"/> <corners android:radius="2dp" /> </shape> </item> </layer-list> In this style, the elements in the ListView are decorated and look like this 
I'm trying to add a second rectangle to draw like this. 
But it does not work to do it correctly. The second option is obtained by adding at the end of the layer-list
<item android:left="1dp" android:right="1dp" android:top="0dp" android:bottom="2dp" android:width="60dp"> <shape android:shape="rectangle"> <solid android:color="#AACCCCCC"/> </shape> </item> But it works correctly only in the preview. Tell me how to edit to display correctly?