Questions tagged as 'recyclerview'

1
answer

How to pass a Listobject by Intent to another Activity?

Good morning, I have an application that I am developing in which I am trying to pass the adapter from RecyclerView by means of Intent to another Activity I do not know what I am doing wrong, annex code, before hand I apprec...
asked by 09.05.2017 / 18:25
2
answers

How to detect the rotation of the screen and change the data of the GridLayoutManager

As many of us know that when turning the screen of the phone or tablet what the application does is to load the activity again, I need to detect that turn and change the value of the GridLayoutManager and pass it to the recyclerview, the content...
asked by 18.11.2017 / 06:17
1
answer

How to refresh an item N minutes in a Recyclerview?

I have a list of objects with a field that shows the elapsed date, ie "right now" "1 minute ago" "2 minutes ago" etc ... Who is interested is the following: link Now I compute it in onBindViewHolder of the adapter, but of course i...
asked by 05.02.2018 / 19:33
1
answer

Update RecyclerView

I have an ArrayList which provides the data to the RecyclerView, the idea is that when you click on an item this is deleted, and implement the onClick method and I also have the line of code to delete a data from the arrayList, but not I know ho...
asked by 16.12.2017 / 03:29
1
answer

Problem with RecyclerView and List on Android

Good morning. I'm trying to download a series of data from the internet. To do this, through a webservice filled a list of objects. This list is sent to RecycleAdapter to show them in RecyclerView . But in doing so, I get this pr...
asked by 08.04.2017 / 21:26
1
answer

Why does the Recycler View sometimes load the Json obtained and sometimes not?

First of all, thank you very much for reading my question. I am new to this and I hope to formulate the query correctly. I have an app which I consult through volley a URL that a Json returns to me. Then this Json is taken to each of the items t...
asked by 06.11.2018 / 15:46
1
answer

Different onclick event for each part of a recyclerview

I have an app with a recyclerview which I have implemented View.OnClickListener in its respective adapter, all the functionality of OnClick works perfectly for each item in the recyclerview the problem is that I want it to behave differen...
asked by 28.10.2018 / 21:34
0
answers

How to fill Recycler of a Fragment with data sent from another Fragment

In the Fragment1 I send a name and a phone to the Fragment2 I use the following example to try to fill the Recycler of the Second Fragment the communication works because I tried it adapting it to my needs, what I want to do now is to fill a Rec...
asked by 22.10.2018 / 16:27
1
answer

Can you place two different Layouts in the same RecyclerView? [closed]

To give the example of a chat. The messages are placed in a RecyclerView, and each element of the RecyclerView is a Layout that is composed of a cardView where the name, time and message goes. Now, a user is going to choose an option where th...
asked by 13.09.2018 / 16:57
1
answer

Error passing the code from an activity to a fragment (recyclerview)

I want to pass the code I have from an activity to some tabs and I get an error NullPointerException: Attempt to invoke virtual method 'void android.support.v7.widget.RecyclerView.setLayoutManager(android.support.v7.widget.RecyclerView$LayoutM...
asked by 03.08.2018 / 20:35