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
1
vote
1 answer

Staggered Grid Layout behavior issue

I`m new in Android. Could somebody help with "strange" StaggeredGridLayout behavior. GIFs attached below: first_example_StaggeredGridLayout_behavior.gif second_example_StaggeredGridLayout_behavior.gif My recycler init code: val layoutManager =…
1
vote
1 answer

findLastVisibleItemPosition() returns -1

Create an adapter object, find recycler view id to set adapter and then set layout manager. In scroll listener, unable to get correct LastVisibleItemPosition, it return -1 to me. findFirstVisibleItemPosition() also returning -1. //Here is…
1
vote
0 answers

java.lang.IndexOutOfBoundsException: Invalid index 49, size is 0

where I scroll RecyclerView got problem on this code this one from RecyclerView.Adapter return items.get(position) != null ? VIEW_ITEM : VIEW_PROG; and this one from activity lLayout = new GridLayoutManager(MyActivity.this, 2); …
1
vote
0 answers

Custom Recyclerview layoutmanager scroll to position issue

I'm Having a design where I need to show like this: I am finished with all changes but I need to scroll to the position I clicked and it's not working public class CircularLayoutManager extends LinearLayoutManager { private static final int CIRCLE…
1
vote
1 answer

How to remove multiple background border on RecyclerView adapter in android?

I am using RecyclerView with Implementing GridLayoutManager spanCount 3 and issue is background border displayed multiple time see screen shot and layout. But i need to single border shape with row item on this adapter. So share your experience and…
1
vote
2 answers

Dynamic Circular Recycle view List

I want to create a circular recycle view, where I can populate or change list items on circular motion of my recycle view as shown in the image below. On circular motion the items needs to be changed/replaced as we do in recycle view scroll. I am…
1
vote
1 answer

How to avoid binding of all items in Recyclerview, when it is inside NestedScrollview?

I have a Recyclerview, inside NestedScrollview. Recyclerview is having different item types that need to load dynamically,But all items in recyclerview are binding together when it is inside nested scroll. How can I avoid this? I don't need any…
1
vote
1 answer

Gap between recyclerview items after dismissing an item

I was experimenting with the recyclerview trying to learn how to allow a swipe dismiss with an item in the view. Whenever I dismiss an item, the space the item used to take up is still there with an empty space. The items won't move up to populate…
1
vote
1 answer

RecyclerView with disabled scrolling is not efficient

I need an efficient RecyclerView with following features: nested in a scrollview, to scroll with other views fills all (estimated) space required to render all items render only visible items and reuse previously visible views. Currently I can…
1
vote
2 answers

Table layout xml for leaderboard template - Android

I'm trying to create a layout for a user leader-board but I don't know how to make every "row" equal in proportion. Here's the list of users: And this is the code of the child layout (that populates a recyclerview):
1
vote
2 answers

Android RecyclerView GridLayout size issue

I am trying to achieve the following result. Expected Result Image And I am getting the following result. Actual Result Image can anyone guide me to achieve the expected results. I have shared my code below, mLayoutManager = new…
1
vote
2 answers

How to do pagination with NestedScrollView?

When I am doing pagination with the nested scroll view it takes too much time, sometimes my app hang? Please tell me the right way to implement pagination with nested scrollview
1
vote
0 answers

Recycle View had the half of the height

I have a problem with this Recycle View on this layout, it don't take the complete height of your father container. I used the weight parameters, but that is not the problem i think. Check the code and Print screen. Thanks in advance.
1
vote
3 answers

No adapter attach,skipping layout

I am getting an error saying no adapter attach skipping layout.and the list doesn't appear in when emulator runs.please help.I cant see anything in list.screen appears blank.other items in the activity are appearing.i have seen almost all answer on…
1
vote
3 answers

How to implement Item counter on RecyclerVIew?

I want to implement Item counter on RecyclerView in android. If we scroll the list so item counter will increase like below Image. I am new in android so Please suggest me what is it called and where can we get it to read it. Thanku
pb007
  • 153
  • 1
  • 5
  • 13