Created
February 4, 2019 18:04
-
-
Save parzibyte/5da0e4c6bd1effadbf0d03e403ccc727 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
@Override // Un toque sencillo | |
public void onClick(View view, int position) { | |
// Pasar a la actividad EditarMascotaActivity.java | |
Mascota mascotaSeleccionada = listaDeMascotas.get(position); | |
Intent intent = new Intent(MainActivity.this, EditarMascotaActivity.class); | |
intent.putExtra("idMascota", mascotaSeleccionada.getId()); | |
intent.putExtra("nombreMascota", mascotaSeleccionada.getNombre()); | |
intent.putExtra("edadMascota", mascotaSeleccionada.getEdad()); | |
startActivity(intent); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment