Custom Alert Dialog Box in Android

In last tutorial we have see the example of Alert Dialog in Android. But sometime we need to make our own customize dialog.
In this tutorial we create custom dialog. We have to make our own layout xml file for our dialog. Let’s see simple example.

First Create your dialog layout  custom_dialog.xml.

activity_main.xml

MainActivity.java

Now run project. Our output looks like below,

android-custom-alert-dialog-tempoutput-skynils

 

Download Project.
downlod

Now see next Tutorial Sharing Text to Other application in Android.