Recycler View dengan OnItemClickListener
hello temen2, yuk kita akhiri kelas Recycler View dengan metode OnItemClickListener 1. langkah pertama kita buka kelas CardViewHeroAdapter, package com.example.myrecyclerview; import android.view.LayoutInflater; import android.view.View; import android.view.ViewGroup; import android.widget.Button; import android.widget.ImageView; import android.widget.TextView; import android.widget.Toast; import androidx.annotation.NonNull; import androidx.recyclerview.widget.RecyclerView; import com.bumptech.glide.Glide; import com.bumptech.glide.request.RequestOptions; import java.util.ArrayList; public class CardViewHeroAdapter extends RecyclerView.Adapter<CardViewHeroAdapter.CardViewViewHolder> { private ArrayList<Hero> listHero; public CardViewHeroAdapter(ArrayList<Hero> list){ this.listHero = list; } @NonNull @Override public CardView...