Created
August 27, 2019 16:38
-
-
Save parzibyte/9271cedb2019c938577b5bf03e952b99 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 Dialog dialogPersonalizado = new Dialog(MainActivity.this); | |
dialogPersonalizado.setContentView(R.layout.dialogo_password_ajustes); | |
// Podemos obtener los elementos dentro del layout ;) | |
Button btnAlertaPasswordOk = dialogPersonalizado.findViewById(R.id.btnAlertaPasswordOk); | |
btnAlertaPasswordOk.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
Toast.makeText(MainActivity.this, "Ok en botón", Toast.LENGTH_SHORT).show(); | |
} | |
}); | |
// Después mostrarla: | |
dialogPersonalizado.show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment