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

Resizing and positioning RecyclerView items

I am using RecyclerView to show items in Grid layout. Below is the image of emulator and the desire results i need to achieve. Left side (executing) image is the output on my emulator, while Right Side (Desired) is the output i want to…
2
votes
1 answer

How to use RecycleView in kivy?

Based on the code that is posted on kivy docs about Recycle View, how do I change the data? how to change the size of the selectable labels? and especially if I want to have more widget on the screen, how do set the position of the list to be in the…
MrAtlas365
  • 25
  • 1
  • 4
2
votes
0 answers

Populating a RecyclerView with a Firestore subcollection?

Database Screenshot I currently have a database that is set up like below, Raters- |_userID1 | |_Car1 | |_Car2 | |_Car3 |_userID2 |_Car1 |_Car2 |_Car3 With…
2
votes
1 answer

How to create perform action when swipe recycler view item. Just like swipe to delete option in gmail app. But recycler view item should not removed

when swipe recycler view item it goes to edge to display and come back to original view. Just like textra sms app and true caller app. When swipe it should trigger a action. This is something like swipe delete. But swipe delete action trigger after…
2
votes
2 answers

Load all data present in the list using RecyclerView Android

I am using RecyclerView to display the data present in a list. But RecyclerView loads only the rows data which are visible to the user. As my list has only 10-12 items and I want to load all of them at once. How to deal with this using…
Kavita Patil
  • 1,784
  • 1
  • 17
  • 30
2
votes
2 answers

RecyclerView In Fragment Not Working (Unable to add data to it)

Here is my fragment public class TransactionsFragment extends Fragment { private FirebaseAuth mAuth; private DatabaseReference mDBref; FirebaseUser Fuser; private String UID; private RecyclerView recyclerView; private…
2
votes
3 answers

JSON Data is not retrieved serially to RecyclerView

When First open my app, it showing 1-5 or 7 is serially. then, i scroll my Recyclerview it shows the item randomly. this is the main json link : http://services.hanselandpetal.com/feeds/flowers.json see image for more details when first open when…
2
votes
2 answers

RecyclerView Bugs?

I have a Note-App. In the Main Activity the Notes are going to be listed with a RecyclerView. To apply changes in the database I use FirestoreRecyclerOptions. But I have a big problem. First, everything works fine. When the ListItems are changed…
2
votes
0 answers

How to add typing dots to recyclerview

Hi I am trying to create an 1on1 chat with Socket.IO, but I have made the sounds then the other part is typing to me, but my problem is that I dont know how to add a loading dots from this github…
JonathanNet
  • 1,637
  • 3
  • 15
  • 17
2
votes
1 answer

RecyclerView blinks when notifyDataSetChanged() is called

I am facing the issue that my adapter blinks when adapter.notifyDataSetChanged() or adapter.notifyItemRangeChanged(0,recyclerView.getChildCount()) is called. I have tried so many solutions like setHasStableIds(true) and overiding the getItemId() to…
2
votes
1 answer

Not able to clear the partial swipe delete button after swipe back in recycler view android

I am trying to create archive like swipe action of gmail in my app. I am able to draw the image and text while sliding.But the problem is after the slide back the delete button image is not removed. How to remove the delete button after slide back.I…
Jeeva
  • 1,791
  • 2
  • 23
  • 42
2
votes
2 answers

Huge gap between cards of recyclerView

I have a recylerView to show the images fetched from firebase cloud, However there is a large gap between some items and these gaps arise after i start scrolling, before scrolling, everything is placed perfectly, I have read a few articles, however…
2
votes
4 answers

How to create rtl GridLayoutManager in Android?

I'm creating a recyclerView in android project and i want to set a gridLayout manager in my recyclerView . here is my Code : workHourRecycler = view.findViewById(R.id.market_hours_recycler); workHourRecycler.setLayoutManager(new…
2
votes
1 answer

Android: RecyclerLayout is adding default padding

I'm trying to create a Collapsing Toolbar Layout using RecyclerLayout. The problem is that, When I'm inflating the Layout during run time, it's adding a default padding on it's own. Below are my layout xmls: activity_profile.xml
Akshay Singh
  • 313
  • 1
  • 5
  • 16
2
votes
2 answers

RecyclerView notifyItemRangeInserted not maintaining scroll position

I have a simple recyclerview with items (tips) and a loading spinner at the bottom. here's how the item count and item view type methods look: @Override public int getItemViewType(int position) { if (position == getItemCount() - 1) { // last…