Android Widgets
There are given a lot of android widgets with simplified examples such as Button, EditText, AutoCompleteTextView, ToggleButton, DatePicker, TimePicker, ProgressBar etc.
Android widgets are easy to learn. The widely used android widgets with examples are given below:
Let’s learn how to perform event handling on button click.
Displays information for the short duration of time.
We are able to customize the toast, such as we can display image on the toast
It has two states ON/OFF.
Let’s see the application of simple food ordering.
AlertDialog displays a alert dialog containing the message with OK and Cancel buttons.
Spinner displays the multiple options, but only one can be selected at a time.
Let’s see the simple example of AutoCompleteTextView.
RatingBar displays the rating bar.
Datepicker displays the datepicker dialog that can be used to pick the date.
TimePicker displays the timepicker dialog that can be used to pick the time.
ProgressBar displays progress task.