Is it possible to create an alert dialog box in XML? If so, I'd like
to do something like this from XML:
AlertDialog.Builder editDialog = new AlertDialog.Builder(this);
editDialog.setTitle("MyProject");
editDialog.setMessage("Edit this contact?");
editDialog.setNeutralButton("OK",
new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int which) {
// do nothing
}
}
);
editDialog.show();
Does anyone have an example?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---