I\'ve been trying to add two elements in a default AlertDialog but I can\'t seem to make it work. Here\'s my code:
// START Dialog
AlertDialog.Builder alertD
Make one .xml file which include whatever view you want like below.
After that in your .java file implements following code.
View view = View.inflate(this, R.layout.yourxmlname, null);
AlertDialog.Builder alert = new AlertDialog.Builder(this);
// Now set the dialog's content
alert.setContentView(view);
Hope it helps you.