Skip to content

Instantly share code, notes, and snippets.

@igordeoliveirasa
Created February 20, 2015 12:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igordeoliveirasa/0010d295fb4e6daee238 to your computer and use it in GitHub Desktop.
Save igordeoliveirasa/0010d295fb4e6daee238 to your computer and use it in GitHub Desktop.
Android Alert
AlertDialog.Builder alert = new AlertDialog.Builder(context).
setTitle("Foto de Avaliação").
setMessage("Deseja remover esta foto da avaliação?").
setPositiveButton("Sim", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
child.images.remove(v.getTag());
notifyDataSetChanged();
dialog.dismiss();
}
}).
setNegativeButton("Não", new DialogInterface.OnClickListener() {
public void onClick(DialogInterface dialog, int whichButton) {
dialog.dismiss();
}
});
alert.show();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment