Questions tagged as 'recyclerview'

2
answers

Go from one fragment to another when selecting an item from a RecyclerView

I'm working with Tabs Fragments. Within the first fragment I receive Data from Firebase and show it with a recyclerview, I use the ItemClickSupport class for the onItemClicked method. This is my code: ItemClickSupport.addTo(recycler).setOnI...
asked by 18.01.2017 / 06:14
5
answers

Open a new screen, with an onMenuItemClick and send data

Good, I have a RecyclerView with its CardView , and when I click on the photo I get the drop-down menu that I created with 2 options. With one of them I want to be able to open another activity to show more information. Any id...
asked by 20.04.2017 / 10:42
1
answer

Can you populate a RecyclerView with two xml adapters with different structure?

I'm reading two xml with two different structures, I can populate a RecyclerView with the two adapters of each xml. In this picture you can see what I want to do. Now I have the files that are for a parser xml, a class for each xml, a p...
asked by 25.08.2016 / 00:11
1
answer

Switch from Adapter (List to Grid) during execution in a RecyclerView

Currently I have a screen where he shows me a list of objects, for this I created a ListAdapter that I will add to my RecyclerView . I would like that when I press a button, the view changes to grid mode, using GridAdapter . S...
asked by 19.09.2016 / 10:59
1
answer

How to implement infinite scrolling in recyclerview

I have a recycler and inside that recycler cardviews are shown with info brought from a REST API and I would like to implement this feature in my application but I do not know how to do it, I have seen several examples online but I can not grasp...
asked by 22.03.2017 / 19:49
1
answer

Change list background color (AlertDialog) when selecting an option, and keep it when reopening

I have doubts about how to do a alertdialog custom, where I can make that when I select an item of the alertDialog when I reopen it has the background of another color, indicating that this item was selected, and if I select another item,...
asked by 06.09.2017 / 06:30
2
answers

Item of one color or another (RecyclerView)

What I want to achieve is the following, that an element is painted in one color and the next in another: ----------- item0: azul ----------- item1: amarillo ----------- item2: azul ----------- item3: amarillo ----------- ... and thus witho...
asked by 20.06.2017 / 16:40
1
answer

Problem with RecyclerView on Android

I am trying to implement a list with a RecyclerView whose adapter is powered by a cursor. I do not understand why when executing the app, the list shows only the first element although in the table of the database I have 7 records. I chec...
asked by 17.09.2016 / 14:43
2
answers

Toolbar does not crash with RecyclerView

I have an activity in which I use a RecyclerView, I am trying to make the Android bar collapse when I scroll over the RecyclerView, I have tried using NestedScrollView, but having many elements in the RecyclerView slowed down the activity....
asked by 16.08.2016 / 20:40
1
answer

java.lang.NullPointerException in a RecyclerView

This warning appears to me in a layout where it loads a RecyclerView within onCreate in this line specifically in setLayoutManager recyclerView.setLayoutManager(layoutManager); generates the following:    Method...
asked by 29.12.2016 / 21:01