Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 28, 2019 02:36
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 parzibyte/b3a0f7ef03c9d2c66a1a20df5628c336 to your computer and use it in GitHub Desktop.
Save parzibyte/b3a0f7ef03c9d2c66a1a20df5628c336 to your computer and use it in GitHub Desktop.
final AlertDialog.Builder builder = new AlertDialog.Builder(MainActivity.this);
builder
.setTitle("El título")
.setNegativeButton("Cancelar", null)
.setPositiveButton("OK", new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int which) {
Toast.makeText(MainActivity.this, "Click en ok", Toast.LENGTH_LONG).show();
}
});
final AlertDialog alertDialogPersonalizado = builder.create();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment