Created
April 10, 2017 13:19
-
-
Save fnovoac/e64459b710a8689f636ad9279647e289 to your computer and use it in GitHub Desktop.
Un alert dialog que muestra 3 opciones que son pasadas como CharSequence
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
// a nivel de de la Clase | |
private CharSequence opcionesCiudad[] = new CharSequence[] {"Editar", "Eliminar"}; | |
AlertDialog.Builder alertDialogBuilderOpciones = new AlertDialog.Builder(this); | |
alertDialogBuilderOpciones.setCancelable(false); | |
alertDialogBuilderOpciones.setItems(opcionesCiudad,this); | |
alertDialogBuilderOpciones.setNegativeButton(R.string.Cancelar,this); | |
alertDialogBuilderOpciones.create().show(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment