Top "Android-viewholder" questions

A ViewHolder object stores each of the component views inside the tag field of the Layout, so you can immediately access them without the need to look them up repeatedly.

About RecyclerView.ViewHolder and RecyclerView.Adapter

The RecyclerView.ViewHolder class has a field that is public final View itemView. It says that the onBindViewHolder method should …

android android-5.0-lollipop android-recyclerview android-viewholder
getActivity() / context in a ViewHolder in Kotlin Android

I'm building a ViewHolder and Adapter for a Fragment and when I try to make an OnClick for the ViewHolder, …

android kotlin android-viewholder kotlin-android-extensions
Getting position of View in onCreateViewHolder

I am using a RecyclerView with a single row layout with an ImageView and a TextView. I want to implement …

java android android-view android-recyclerview android-viewholder
Android: how can I insert a RecyclerView inside CardView?

The activity I am talking about must show a RecyclerView populated by CardViews as items. My goal is to show …

android android-cardview android-viewholder android-recyclerview
How to get all RecyclerView ViewHolder?

I want to change all items' text color when I click on one of them. My problem is that the …

android android-recyclerview android-viewholder
Add fragment in RecyclerView.ViewHolder

I have a RecyclerView.ViewHolder which will add different fragment into its FrameLayout based on the instance of the object …

android android-fragments android-viewholder
Android: Changing visibility of a view in recyclerView

I have implemented a recyclerView in my project. I have a Button in my recyclerView row. The code for my …

android android-recyclerview android-view android-viewholder
RecyclerView.getChild(index) shows null when list is scrolled (index gets messed up)

I've been using SwipeableRecyclerView for my android application for enabling swipes for my recyclerView. RecyclerView contains a list of cardViews. …

android android-recyclerview android-viewholder
ViewHolder views must not be attached when created

I'm trying to create a simple RV that will show a TextView. This is my adapter: public class MyRvAdapter extends …

android android-recyclerview android-viewholder
How to call a MainActivity method from ViewHolder in RecyclerView.Adapter?

In a simple app project at GitHub I have only 2 custom Java-files: MainActivity.java contains Bluetooth- and UI-related source code …

android android-recyclerview android-bluetooth android-viewholder