Can we make use of in built setOnCliclListener on recycler view row item instead of custom item click listener?
问题 I have seen many examples for providing click functionality (for selecting row item in recycler view) to a row item, but all of them are using custom click listener class to achieve this. Is there any method to achieve this click functionality? 回答1: Detecting click on a RecyclerView item is very easy. All you need to do is define an interface (if you're not using Kotlin, in which case you just pass in a lambda): public class MyAdapter extends RecyclerView.Adapter<MyViewHolder> { private final