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

RecyclerView Dynamic Header

I have been working with RecyclerView to add dynamic headers. I have provided a sample Image like below what I wants. In above image the children are finite which is not in my case. I'm having uncertain children after the header. Basically instead…
Maulik Dodia
  • 1,629
  • 2
  • 21
  • 48
3
votes
2 answers

how do I add header/footer on my Recyclerview in android

I have spent some time trying to figure out how to add header/footer to my recyclerview but it is not working. the footer shows the but header and list item does not show on the emulator. My adapter package…
3
votes
3 answers

On scroll recyclerview item Background color changed when recylcerview scroll

I want to change Recyclerview item background color on my condition but when I scroll background color automatically changed I know holder.setIsRecyclable(false); but I don't want to set holder.setIsRecyclable(false); and I know …
Vanraj Ghed
  • 1,261
  • 11
  • 23
3
votes
1 answer

How to implement an Expandable RecyclerView where the child is having a grid structure?

I need to have an expandable view where the parent/expandable title will have a text and drop-down arrow. Children of each such title should be a view having multiple items in a grid structure. (Kind of like a recycler view with GridLayoutManager).…
3
votes
2 answers

Android - OnLoadMore in RecyclerView with wrap_content height

I have RecyclerView which its height is set to wrap_content. Now I need to implement OnLoadMore to it but there is a problem. I used, RecyclerView.OnScrollListener.onScrolled(RecyclerView recyclerView, int dx, int dy) But it doesn't get invoked…
Saman Salehi
  • 1,995
  • 1
  • 22
  • 36
3
votes
1 answer

Horizontal Recycler View with multiple item at once

I want to show multiple itemview at once like this I am using recycler view 23.2.1 compile 'com.android.support:recyclerview-v7:23.2.1' My recycler view xml
manish
  • 944
  • 2
  • 14
  • 27
3
votes
1 answer

Better practice: reusing RecyclerViewAdapter or separate instance for each?

I have fragment "Incoming" on one slide of a viewpager. This fragment contains a RecyclerView populated with custom-relative-layouts. The LinearLayoutManager orientation is Vertical. I have a second fragment "Find" on the next slide of the said…
Script Kitty
  • 1,737
  • 5
  • 27
  • 47
3
votes
0 answers

Weird Animation Comes For RecyclerView Last Item

I have two views in my RecyclerView single item , two RelativeLayouts, at some point I am flipping both RelativeLayouts, I am rotating the LayoutA from 0 to 180 degree, and the same time I does rotating the LayoutB from -180 to 0, so will get a…
droidev
  • 7,352
  • 11
  • 62
  • 94
3
votes
2 answers

RecyclerView Showing Random Data

I am having a RecyclerView with a Custom Adapter which extends RecyclerView.Adapter I am Creating LinearLayout with Textview at Runtime and inflating it in each row of RecyclerView For Example, 1st Row of RecyclerView will have 2 or 3 Textview…
Avtar Singh
  • 261
  • 8
  • 14
3
votes
2 answers

Expand Recyclerview item with animation when scrolling up

Iphone App video link How I can design and develop view which is posted in above video? This is basically the item expansion of recyclerview with animation. I have tried with onItemtouchlistener of recyclerview and also with some custom view with…
3
votes
1 answer

Ripple effect on Recyclerview items is not noticeable sometime

I have a recyclerview implementation in one of the activity and Recyclerview item click navigates to a different screen. But when user clicks on an Recyclerview item user can see ripple effect (in API level >= 21) before it navigates to other…
2
votes
1 answer

RecyclerView last item is cut off onResume of fragment

Problem RecyclerView functions properly and no view is cut when not opening a detailFragment. But it cuts off the last item of my RecylerView item whenever I return back from the detailFragment launched by the recylcerview item. I only encounter…
2
votes
2 answers

RecyclerView inside ConstraintLayout - Start position at top of parent

To make things simple, I have a ConstraintLayout with 2 childs: a RecyclerView and a Button. I want the RecyclerView to start showing from the top of the parent. If there are only a few items to show in RecyclerView, it should wrap them. Something…
2
votes
3 answers

Android RecyclerView Gravity issue

I am using DrawerLayout to show Navigation Drawer, in that A NavigationView, the xml code is : MyDrawerLayout.xml
2
votes
3 answers

Recycler view Very laggy

I have been using recycler view to display 15 images on my fragment. The images are in the drawable folder. I tried outer views to do this but its much more slower and lags a lot. Hence I used recycler view to solve this issue. The fragment takes…
Too Low
  • 107
  • 9