Tuesday, 1 December 2015

android drawable, draw a shape on top of another shape

use "layer-list"

<layer-list>
    <item>
        <shape>
            <solid android:color="@color/colortab_1"/>
        </shape>
    </item>

    <item>
        <shape>
            <solid android:color="@color/colortab_1"/>
            <stroke
                android:width="2.3dp"
                android:color="@color/colortab_1_text" />
            <corners
                android:radius="15dp" />
        </shape>
    </item>
</layer-list>





No comments:

Post a comment