Android UI Controls/Widgets

In this tutorial you will learn about the Android UI Controls/Widgets and its application with practical example.

As we discussed in Basic Building Block Page that View are drawn on screen. View occupies rectangle area on screen.View is a BaseClass for widgets.

Table Of Contents

There are lot off UI Controller/Widgets provided by Android ,such as Button,TextView, EditText , Checkbox, DatePicker, TimePicker, ProgressBar etc. These all allow you to build GUI for Android App.

  1. Button: It’s an User Interface Element from that user can tap and perform Action. To display a button on screen you have to add it on layout xml file of Activity.

2. TextView : It’s an user interface element which display text to user. Following code sample will help you to display TextView on Screen.

  1. EditText : Its’s an UI element which is used for enter and modify text . Using below code you can display EditText Widgets.

4.CheckBox : Checkbox is UI element which allow user to select multiple options . Using below code you can display CheckBox.

5.DatePicker : The Datepicker allow users to select a date of the day.

6.TimePicker : The TimePicker view allow users to select a time of the day.

7.ProgressBar: This view is useful when you want to display that some task is going on, It gives visual feedback.

8.RadioButton : it has two state either checked or unchecked, when it is checked ,the user can press it to unchecked it. Radio buttons are mainly used in RadioGroup. In Radio group when you checked any radio button so rest automatically becomes unchecked.

  1. ToggleButton : ToggleButton is a button which have two condition i.e. On/Off with light indicator with the text “ON” or “OFF”.

In this tutorial we have learn about the Android UI Controls/Widgets and its application with practical example. I hope you will like this tutorial.