We know that Android Studio has many different types of Widgets or Android Elements such as Button, Toast, Edit Text, TextView, ImagView, DatePicker, ScrollView, Progress Bar, Checkbox etc. Without These widgets App making is impossible in Android Studio. In this tutorial you will learn widgets type and its purpose of use.
If you want event handling in your app like Click on a particular thing or area will naviagte to another area or activity or execute some other operation than you can do this using a Button.
If you want to labeling in your app then using TextView it is possible. It a type of TextEditor.
If you want to show your message or information to user temporary or short period of time then you must use of Toast.
As name suggest it will used for showing your images into your android app.
If you want to accept data or information from your users in app then you can use EditText which allows them to enter or write information inside it.
If you want to make app such as a Quiz app with multi choice answers than for your multi answers you should use CheckBox to accept multi answers from your app users easily.
If you want to give your users to select a single choice value such as allow them to choose their Gender either as Male or Female then you can use Radio Button inside your app easily.
It will provide a eficient way to turn on or turn off something in your app from your users input.
If you want to allow your users to selct a option from a drop down list than you can spinner in your Android App.
It will allows to pick a date from the DatePicker Dialog.
It will allows to pick a time from the timePicker Dialog.
If you have a large number of data or information to show in the app than without scrollview your users will be able to see this data only which is visible to their mobile screen. So ScrollView enables to your users to scroll to last to see complete information easily. It is of two type such as: Horiontal and Veritcal ScrollView.
If you are performing a time consuming task than you should use ProgressBar that your users will know that how much process is done or remaining to excecute the operation.
A WebView is a type of View to show or render your Web Pages inside your app.
There are a number of widgets is remaining which we will discuss about all these widgets in details with example in our next tutorials.
You must be logged in to post a comment.