Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created September 26, 2019 15:27
Show Gist options
  • Save parzibyte/532e153e93de3cc70885d833890a8789 to your computer and use it in GitHub Desktop.
Save parzibyte/532e153e93de3cc70885d833890a8789 to your computer and use it in GitHub Desktop.
package me.parzibyte.demostracionrecyclerview;
import android.view.View;
import android.widget.TextView;
import androidx.annotation.NonNull;
import androidx.recyclerview.widget.RecyclerView;
class ViewHolderMascota extends RecyclerView.ViewHolder {
private TextView textViewEdad, textViewNombre;
ViewHolderMascota(@NonNull View itemView) {
super(itemView);
textViewEdad = itemView.findViewById(R.id.textViewEdad);
textViewNombre = itemView.findViewById(R.id.textViewNombre);
}
TextView getTextViewEdad() {
return textViewEdad;
}
TextView getTextViewNombre() {
return textViewNombre;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment