Last active
November 11, 2016 19:46
-
-
Save tassioauad/8ebd692e7342c2503616342cbe178f8f to your computer and use it in GitHub Desktop.
DialogFragment/AlertDialog dismiss automatically on click button
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Override | |
public Dialog onCreateDialog(Bundle savedInstanceState) { | |
AlertDialog alertDialog = new AlertDialog(getActivity()); | |
// set more items... | |
alertDialog.setButton(AlertDialog.BUTTON_POSITIVE, "OK", null); | |
return alertDialog; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment