[Html] <? Xml version = "1.0" encoding = "UTF-8"?> <Shape xmlns: android = "http://schemas.android.com/apk/res/android" android: shape = "rectangle"> <gradient android: angle = "90" android: endColor = "#00000000" android: startColor = "#00000000"/> <corners android: bottomLeftRadius = "12dp" android: bottomRightRadius = "12dp" android: topLeftRadius = "12dp" android: topRightRadius = "12dp"/> <stroke android: width = "1dip" android: color = "@ color/gray"/> </shape> <? Xml version = "1.0" encoding = "UTF-8"?> <Shape xmlns: android = "http://schemas.android.com/apk/res/android" android: shape = "rectangle"> <gradient android: angle = "90" android: endColor = "#00000000" android: startColor = "#00000000"/> <corners android: bottomLeftRadius = "12dp" android: bottomRightRadius = "12dp" android: topLeftRadius = "12dp" android: topRightRadius = "12dp"/> <stroke android: width = "1dip" android: color = "@ color/gray"/> </shape> [html] <PRE class = html name = "code"> android defines a rounded rectangle for android: shape = "rectangle" has four options: The color gradient displayed by the odevil ellipse, line horizontal line, and ring gradient. The default value is transparent android: angle = "90" // angle android: endColor = "#00000000" android: startColor = "#00000000" android: startCentenr = "#000000" starts in sequence and ends the process of a gradient to define the rounded corner <corners android: bottomLeftRadius = "12dp" android: bottomRightRadius = "12dp" android: topLeftRadius = "12dp" android: topRightRadius = "12dp"/> defines the border color value of the rounded corner <stroke android: width = "1dip" android: color = "@ color/gray"/> define the solid color, that is, the fill color value <solid android: color = "@ color/color_white"/> </PRE> <BR> <PRE> </PRE> <PRE class = html name = "code" sizcache =" 0 "sizset =" 5 "> <PRE class = html name =" code "sizcache =" 0 "sizset =" 6 "> <PRE class = html name =" code "sizcache = "0" sizset = "7"> <PRE class = html name = "code" sizcache = "0" sizset = "8"> <PRE class = html name = "code "sizcache =" 0 "sizset =" 9 "> <PRE> </PRE> <PRE> </ PRE> </PRE>