Xml template, custom button background

Source: Internet
Author: User
The outermost layer is the selector. the state_pressed attribute containing two items is triggered when it is clicked. true indicates that the clicked item is displayed. false indicates the default value. Xml template, custom button background

 
 
 
 
 

The outermost layer is the selector. the state_pressed attribute containing two items is triggered when it is clicked. true indicates that the clicked item is displayed. false indicates the default value, the shape attribute of can control the displayed shape. generally, select a rectangle or oval. to become a circular shape, you must specify the width of the height to be greater than the width of the text.

 

The content is rich.

Fill color

Edge width: edge width color: color dashWidth: width of the dotted line, dashGap: Interval width of the dotted line rounded corner. you can set four corners. in this case, the shape is a rectangle, or you can set the radius at one time.

Set width and height

Set padding

The above is the xml template. for details about the background of the custom button, refer to other related articles in the first PHP community!

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.