UI controls are also called input controls that allow you to interact with the user interface. There is a wide range of controls that allows you to implement text fields, input fields, buttons, checkboxes, toggle buttons, and other UI components in your Android application.
There are a variety of UI controls provided by Android that include the following:
- TextView: This UI control is used to show text content to the user.
- Button: Buttons are a very important part of any UI. Buttons are used to act after they are clicked or pressed.
- CheckBox: Checkboxes are used for selectable items such that they work just like an on/off switch.
- ImageButton: It comes under AbsoluteLayout which displays an image with a clickable button.
- RadioButton: Radio buttons are used where are multiple options and the input can be taken only once.
- ToggleButton: This type of UI control is an on/off button with a light indicator that turns on after clicking that button and turns off after re-clicking that button.
- DatePicker: It is used to select a date from the calendar.
- TimePicker: TimePicker allows users to pick a time. It also provides two different modes for a time such as 12-hour or AM/PM mode and 24-hour mode.