Button Controls

Buttons are common in any widget toolkit, and Android is no exception. Android offers the typical set of buttons as well as a few extras. In this section, we will discuss three types of button controls: the basic button, the image button, and the toggle button. Figure 4-3 shows a UI with these controls. The button at the top is the basic button, the middle button is an image button, and the last one is a toggle button.

Figure 4-3. Android button controls

Let's get started with the basic button.

0 0

Post a comment