Button control

Button control

1. Overview The function of the
Button control is to receive and respond to click events. The
Button control can display text and pictures, and can set the picture as the background

. 2. Common properties

Button is a subclass of the TextView class. It also has

the following common properties of the Button control:
property value Function name of the method
onClick         to respond to the click event
drawableLeft    The button displays the picture on the left (the text is on the right side of the picture), and the effect of displaying the left picture and the right word is displayed in the
drawableRight     button The picture is displayed on the right ( The text is on the left side of the picture), showing the effect of the left word in the right picture, and   the picture is displayed on the top of the
drawableTop   button (the text is below the picture),
and  the effect of the word on the    bottom of the picture above is displayed. Whether the effect of the words on the picture
enable         control is valid, true: valid false: invalid
background     Set the background image or color



Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326885196&siteId=291194637