Android Tutorial 57 - Showing Dialogs

Publié le: 25 mars 2014
sur la chaîne: Code Here Now
781
2

This is an excerpt from Learn by Doing - Android for Beginners on Udemy.
https://www.udemy.com/learn-by-doing-...

This video shows you have to create and show a dialog to the user.

Things to Remember
-----------------------------
1. Use an AlertDialog.Builder instance to start building dialogs.

2. Your dialog can have Title, Message and Buttons (None, 1, 2 or 3 buttons).

3. There are three types of buttons - Positive, Negative and Neutral.

4. Use the Builder.setTitle(int) method to set a title for your dialog.

5. You can set a message by calling the Builder.setMessage(int) method.

6. You can add click listeners to the buttons when you set the button using the Builder.set*Button(CharSequence, DialogInterface.OnClickListener) method.

7. If you don't want to listen for click events, you can pass a null argument to DialogInterface.OnClickListener parameter when setting a button.


Sur cette page du site, vous pouvez voir la vidéo en ligne Android Tutorial 57 - Showing Dialogs durée heure minute seconde en bonne qualité , qui a été Téléchargé par l'utilisateur Code Here Now 25 mars 2014, Partagez le lien avec vos amis et connaissances, sur youtube cette vidéo a déjà été regardée 781 fois et il a aimé 2 téléspectateurs. Bon visionnage!