Shape is used for setting shapes, can be used in selector,layout, etc., with 6 sub-labels
More details: http://www.cnblogs.com/cyanfei/archive/2012/07/27/2612023.html
1 <?XML version= "1.0" encoding= "UTF-8"?>2 <Shapexmlns:android= "Http://schemas.android.com/apk/res/android">3 <!--Solid solid Fill meaning -4 <SolidAndroid:color= "#0000"/>5 6 <!--Gradient Gradient7 Ndroid:angle is a gradient angle and must be an integer multiple of 458 9 -Ten <GradientAndroid:startcolor= "#ff51ffe7" One Android:endcolor= "#7ff" A Android:type= "Linear" - Android:angle= "+" - /> the <!--Stroke Strokes - android:dashwidth= "5DP" - android:dashgap= "3DP is a dashed line. - - + <StrokeAndroid:color= "#ffff6441"Android:width= "2DP"/> - + <!--Rounded Corners - A <CornersAndroid:radius= "20DP"/> at - <!--interval padding - - <padding - Android:left= "10DP" - Android:right= "10DP" - Android:bottom= "10DP" in Android:top= "10DP" - /> to </Shape>
View Code
Some notes on Crazy Android