how to look throuth android Attribute document -
<shape android:shape="rectangle"> <stroke android:width="1dp" android:color="@color/designer_cell_background" /> <solid android:color="@color/designer_cell_background" /> <corners android:radius="7dp" android:toprightradius="0dp" android:topleftradius="0dp"/> <padding android:bottom="1dp"/> </shape>
just code,if want know attributes shape has , what's meaning separetly. how should do,is there document refer .thank in advance.
the attributes can can define shape are:
visible
: determines if drawable visible.shape
: rectangle, oval, line, ringinnerradiusratio
: valid if shape == 'ring'. inner radius of ring expressed ratio of ring's width. value ignored if innerradius defined.innerradius
: valid if shape == 'ring'. inner radius of ring. when defined, innerradiusratio ignored. when undefined, innerradiusratio's default used.thicknessratio
: valid if shape == 'ring'. thickness of ring expressed ratio of ring's width. value ignored if thickness defined.thickness
: valid if shape == 'ring'. thickness of ring. when defined, thicknessratio ignored. when undefined, thicknessratio's default used.uselevel
: valid if shape == 'ring'. allows 1 draw part of ring (arc-wise), modifying drawable's level. setting makes sense in context of (levellistdrawable).
the children can can define shape
are:
size
: determines size of shape.gradient
: adds background gradient shape.solid
: adds solid background color shape. overides gradient element.stroke
: adds border shape.corners
: adds rounded corners shape.padding
: padding content within drawable.
Comments
Post a Comment