Search This Blog

Thursday 19 July 2012

Basics of Dialog Box in Android


Dialog Box in Android


Dialog Box is the best way to show the message popup in an application or on screen selection for user inputs. The Android provides the dialog interface which could be integrate with activity to get the user inputs as well as provide the responses to user.


Android defines the Dialog as class to create the dialog which can be display with in an activity. You should not use the Dialog class directly as the extended classes are also defined by Android which you can use directly in your application.


The four major type of Dialog classes are as follows


AlertDialog - is the most useful dialog class and most of the dialog interfaces could be design using the AlertDialog. You can define your controls to customize the Alert Dialog UI.

Android Alert Dialog
Android - AlertDialog


ProgressDialog - is used to show the progress as a progress bar or progress wheel. You can define your controls to customize the ProgressDialog also.

Android Progress Wheel
Android - Progress Wheel


Android Progress Bar
Android - Progress Bar


DatePickerDialog - is used to select a date by the user.


TimePickerDialog - is used to select a time by the user.

Android Date and Time Pickers
Android - Pickers (Date and Time)

If you like the post please provide your feedback.


Thanks
Creative Android Apps




No comments:

Post a Comment