Questions tagged [recyclerview-layout]

RecyclerView is a more advanced and flexible version of ListView. It was introduced with the Android L Developer Preview, but is also available as part of the Support Library.

RecyclerView is a more advanced and flexible version of ListView, introduced in the Android L Developer Preview but also backported to the Support Library. It is a container for large sets of views that can be recycled and scrolled very efficiently.

Yo use a RecyclerView, an adapter (extending RecyclerView.Adapter) and a layout manager (extending RecyclerView.LayoutManager) must be provided. By default, RecyclerView provides LinearLayoutManager, which shows the items in a vertical or horizontal scrolling list.

Official Documentation

Tag Usage:

436 questions
0
votes
1 answer

Android: How do I return to newly created RecyclerView list?

I create a RecyclerView list with a default layout. I then add one new item to the list and the layout updates to show the new item. I then navigate to a previous activity. When I return to the RecyclerView activity I am returned to the generic,…
AJW
  • 1,578
  • 3
  • 36
  • 77
0
votes
3 answers

Recycler View recycle issue

I have a recyclerView. When I do the pull to refresh, if the new data is just one list item, then the recycler view loads the item perfectly. But if the updated data contains 2 or more, then I think the view is not recycled properly. In the…
User
  • 1,186
  • 4
  • 22
  • 36
0
votes
0 answers

Recyclerview item layout

Is there any way to change recyclerview item's layout dynamically f.e. by pressing on the item? I thought maybe it would work if we simply remove the item and instantly create another one so onCreateViewHolder is called?
Daniel
  • 993
  • 2
  • 10
  • 23
0
votes
0 answers

RecyclerView - Nested RecyclerView StackOverflowError

I am implementing nested RecyclerView in my app, where a vertical Recycler holds another Recycler as its item. Everything is working fine I get the desired views. But I also need to add Sync Scrolling to these views. Which I have done so. The…
Abbas
  • 3,529
  • 5
  • 36
  • 64
0
votes
0 answers

Android Recycler view: How to Keep adding elements one below the other?

I have a List of URLs in a String array. Each has list of latest top 10 Apps. String[] List= {"http://example.com/xml","http://eaxmple.org/xml"....}; The structure of XML is same and say each of those URLs has 10 tags in them. After parsing…
Android_Noob
  • 487
  • 2
  • 6
  • 19
0
votes
1 answer

Populate activities based on RecyclerView Selection

I am working on a recipe or biography kind of app where I need to populate my activity only with different content but in the same activity layout. I couldn't find a way I don’t need to create tons of different activities for each item selected in…
-1
votes
1 answer

RecyclerView is left blank and doesn't bind any data

I am using a recyclerview(id recyclerView) inside a fragment(viewContractorsFragment), I have inflated the root view of the fragment layout and initialized the recycler view. Also the respective adapter and layout managers are set properly. But when…
-1
votes
1 answer

Load more than 10 items in RecyclerView with GridLayoutManager of 3 span count on first time

I using GridLayoutManager with 3 span count in recyclerView on my app, the problem is when I run the app first time it's showing only first 10 items due to the the restriction / pagiation of the items from server, when user refreshing with…
-1
votes
3 answers

RecyclerView doesn't display any item view at load

I am retrieving JSON data and parcing it by Retrofit. I want to display it on RecyclerView but can't make it display the views. Where am I doing it wrong? Here MainActivity, Model and ListFlowerAdapter are given public class MainActivity extends…
-1
votes
1 answer

Unable to get an onClick event in RecyclerView in a Fragment

I'm using a Json to get data and images for my application. The images are displayed in a RecyclerView that is inside of a Fragment (Tab1.java) which is connected to MainActivity. I want to set it up in such a way, so that when the user clicks on an…
-1
votes
3 answers

notifyDataSetChanged in setOnClickListener RecyclerView Adapter

how to update Recylerview , after setOnClickListener in adapter bDelete.setOnClickListener(new View.OnClickListener() { @Override public void onClick(View v) { Boolean succes =…
-1
votes
4 answers

How to order firebase data from the latest

Firebase by default orders data from the earliest and I need it to be ordered from the latest. I am using timestamp to do so and doesn't seem to be working. private void filldata() { …
-1
votes
1 answer

What are some ways to implement this layout

I have a GridLayout using RecyclerView. I need to have an interface that looks like this - Some items from the recycler view need to be displayed inside a container with rounded corners. What are some ways to implement this other than having a…
-1
votes
1 answer

Get id of specific item clicked in RecyclerView

I am passing position and view in my OnItemClicked(int position, View v) method of OnItemClickListener interface. Now in my ViewReceptionistActivity I want to check which item and which sub part is clicked. If the user clicks an image then perform…
Raj
  • 2,997
  • 2
  • 12
  • 30
-1
votes
1 answer

Grid and Vertical list with one RecyclerView

I want to use Grid and Linear layout in one recycle view. Is it possible to use 2 layout manager in on RecyclerView. If not then please tell me the best way to do this.
Umesh Saraswat
  • 560
  • 1
  • 8
  • 22