Created
August 28, 2019 02:36
-
-
Save parzibyte/b3a0f7ef03c9d2c66a1a20df5628c336 to your computer and use it in GitHub Desktop.
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
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