Unable To Understand Layer-list
Solution 1:
A layer list is drawable, called sequence of other drawables with <item>
tag.
Here from your question the first <item>
is inner oval shape & top, bottom, right & left are insets given to that item (just same as padding). Try to give width & height to first you can see inner oval shape with 4dp padding from outer oval.
Refer to this link for more detail about layer drawable http://developer.android.com/reference/android/graphics/drawable/LayerDrawable.html
Yes you can use ring shape to draw a ring like:
<?xml version="1.0" encoding="utf-8"?><shapexmlns:android="http://schemas.android.com/apk/res/android"android:shape="ring"android:innerRadius="15dp"android:thickness="10dp"android:useLevel="false"><solidandroid:color="#ff0000" /></shape>
Post a Comment for "Unable To Understand Layer-list"