Questions tagged as 'android-recyclerview'

2
answers

What is the difference between ListView and RecyclerView?

What is the difference between ListView and RecyclerView on Android? From what APi RecyclerView is available? Is it valid to use RecyclerView and not ListView ?     
asked by 19.10.2016 / 20:56
1
answer

What is RecyclerView?

I saw the class in the Andorid documentation , but I did not quite understand its functionality , where it should be used and for which purpose. The name referred to something that does not seem to be what it actually represents. Is there an...
asked by 02.08.2018 / 13:49
2
answers

What is the right approach to get the click / position in RecyclerView?

What is the right approach to get the click on RecyclerView? 1 - Within the onBindViewHolder use the position, even within the setOnClickListener methods, which turns the variable position into FINAL; 2 - Within the onBindViewHolder use the h...
asked by 19.10.2016 / 15:22
1
answer

What is ViewHolder Pattern?

I am implementing a RecyclerView on Android and I noticed that it is necessary to create a class called ViewHolder . This class seems to be a design pattern called ViewHolder Pattern, and my doubts arise exactly at this point....
asked by 17.09.2017 / 17:40
2
answers

What is the purpose of the RecyclerView.Adapter class when using RecyclerView?

To use RecylerView from Android we need to create a CustomAdapter class that extends from abstract class RecyclerView.Adapter , then implement three methods that are: onCreateViewHolder onBindViewHolder ge...
asked by 18.09.2017 / 00:00
1
answer

How to update RecyclerView simply and efficiently?

The ways I know to update a RecyclerView most efficiently is to use adapter methods notifyItemMoved notifyItemRangeChanged notifyItemRangeInserted notifyItemRangeRemoved They, unlike notifyDataSetChanged() , only cause refres...
asked by 18.01.2017 / 00:08
1
answer

Error RecyclerView: No layout manager attached

I could not find the error. My activity: private AdapterPacientes adapterPacientes; private static MVP.Presenter presenter; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setConte...
asked by 09.02.2017 / 05:00
3
answers

List of questions, each question with a list of answers

I'm implementing a question and answer application. For my listing I'm using a RecyclerView where I load several CardViews (from loading a list). Each CardView shows one question. Below the question text I want to show my list of alternatives...
asked by 27.11.2015 / 20:56
0
answers

Event triggering multiple times when using RecyclerView [closed]

I have a problem with working with RecyclerView . My Adapter has the following code: public class CustomAdapter extends RecyclerView.Adapter<RecyclerView.ViewHolder> { private List<String> list; private ViewHo...
asked by 04.07.2016 / 23:16
1
answer

Items being repeated in a RecyclerView

I have a fragment v4 that is managed by a SectionsPagerAdapter . In fragment I have a RecyclerView that has a Adapter custom that receives a ArrayList that contains exactly 96 objects, which represents th...
asked by 05.04.2017 / 02:21