Created
September 26, 2019 15:56
-
-
Save parzibyte/786904fccf4daf42524d8830d00a6beb 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
btnEliminar.setOnClickListener(new View.OnClickListener() { | |
@Override | |
public void onClick(View v) { | |
String indice = editTextIndice.getText().toString(); | |
if (indice.isEmpty()) { | |
Toast.makeText(MainActivity.this, "Escribe el índice", Toast.LENGTH_SHORT).show(); | |
return; | |
} | |
adaptadorRecyclerView.eliminar(Integer.valueOf(indice)); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment