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
2
votes
2 answers

“IllegalStateException: Only fullscreen activities can request orientation

i'm tyring to update Glide library from 3.8.0 to 4.5.0 but i have this problem with recyclerview when i add com.github.bumptech.glide:glide:4.5.0 to my Build.Gradle file i get this error in recyclerview compile line . All com.android.support…
ali
  • 189
  • 3
  • 14
2
votes
0 answers

swipe to delete from recyclerview using realm database

i have been trying to implement the swipe to delete functionality for a list i have which is done by a recyclerview, right now i need to find a way to delete the item from the realm database using only the position at the recyclerview here's the…
user6677716
2
votes
1 answer

Load more not working correctly in RecyclerView

I have custom recyclerView.In items long click I would to hide some views and show another view(hide imageviews and show Checkboxs) Here is a my code's snippet @Override public void onLongClickListener(String type, final int pos) { …
2
votes
1 answer

On scrolling recyclerview changes disappeared

I created a vocabulary android app where we can add words to favorites by clicking the star icon near the word. On clicking the star icon it changes to solid star icon but if we scroll the RecyclerView than the solid star icon will again change to…
2
votes
1 answer

RecyclerView with overlapping elements

I am trying to create a layout similar to this, using RecyclerView for a TV-like application. The first element indicates how the focused item should look like. The solutions I've tried are: Using cardView as parent layout for elements. Problem:…
2
votes
1 answer

How to create auto adjust grid layout using android RecyclerView

I want to create auto adjust columns like above image Grid Layout using RecyclerView.
Bhavin Jadav
  • 274
  • 1
  • 3
  • 14
2
votes
1 answer

ConstraintLayout: Create a button that fills space after a RecyclerView

I have a horizontal RecyclerView inside a ConstraintLayout. I want to place a button at the end of the RecyclerView. When the recycler is empty, the button should expand to all available space. When items are added to the recycler, the button should…
2
votes
0 answers

How to auto-fit recyclerviews to fill the screen rather than scrolling?

I have a recyclerview within a recyclerview. The inner one is linear and the outer one is a staggered grid layout. As seen in the picture, MARKET was the last word added, and it is offscreen and therefore the user needs to scroll to use it. However,…
2
votes
0 answers

PlaceHolderView - how insert a Listview or Recyclerview

Has anyone used a PlaceHolderView lib? https://github.com/janishar/PlaceHolderView has anyone ever come across the problem of putting a ListView or RecyclerView book inside the PlaceHolderView custom item? need to insert a listview or recyclerview…
2
votes
2 answers

Refresh entire RecyclerView

How to update entire RecyclerView. I tried notifyDataSetChanged() but it update only visible positions. But i want to update enitre RecyclerView. I tried adapter.notifyItemRangeChanged(0, adapter.getItemCount()); but this one is also not refreshing…
sunil
  • 796
  • 1
  • 8
  • 28
2
votes
1 answer

How to implement StackLayoutManager in android Vertical RecyclerView

I want to implement stack of cards from bottom to top swipe each overlap previous card stack.Someone implement this using RecyclerView with custom Layout manager.I don't have enough code. How to do this using Recyclerview.
2
votes
0 answers

RecyclerView multiple view types updating dynamically

I am trying to figure out how exactly Heterogeneous Recyclerview works and adjust it to my needs. I have 3 layouts in it. The first one is header with a BottomBar (which in this case is not at the bottom), and it is always shown. The other 2 layouts…
jlively
  • 735
  • 2
  • 9
  • 29
2
votes
2 answers

Recyclerview with CoordinatorLayout and AppBarLayout

Based on the comments below I have changed my layout. It is working but when I go to the bottom of items in recyclerview and try to scroll up, it only goes up to the start of the recyclerview. I have to scroll again to get to the header.
Esteban
  • 667
  • 9
  • 22
2
votes
1 answer

Android chat using RecyclerView

I am trying to create a chat application with RecyclerView for displaying the list of messages in chatBubble form. In recyclerView, in each row layout I have two text views. One for displaying the message and other for displaying the timestamp.…
2
votes
0 answers

RecyclerView - Always scrolls back to top

I have a simple RecyclerView which has a LinearLayoutManager (VERTICAL). I am currently getting scrolled always back to the top of the list whenever I scroll downwards but only on Android 4.4.2 and lower. I faced the issue on two of six devices that…
Abbas
  • 3,529
  • 5
  • 36
  • 64