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!