》 A button consists of text or an icon (or both text and an icon) that communicates what action occurs when the user touches it.
With text and an icon, using the Button
class with the android:drawableLeft
attribute。
》The appearance of your button (background image and font) may vary from one device to another, because devices by different manufacturers often have different default styles for input controls.
》Styling Your Button
If you want to truly redefine the appearance of your button, you can specify a custom background. Instead of supplying a simple bitmap or color, however, your background should be a state list resource that changes appearance depending on the button's current state.
You can define the state list in an XML file that defines three different images or colors to use for the different button states.