Android defines rounded rectangle

Source: Internet
Author: User

[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>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.