Questions tagged [sectionedrecyclerviewadapter]

An Android adapter that allows a RecyclerView to be split into Sections with headers and/or footers.

62 questions
3
votes
2 answers

Android SectionedRecyclerViewAdapter Section Header

I am using SectionedRecyclerViewAdapter from luizgrp/SectionedRecyclerViewAdapter as adapter for my RecyclerView. We can add Section to SectionedRecyclerViewAdapter with Header layout, as below: public class Section1 extends Section { public…
2
votes
1 answer

notifyDataSetChanged() not updating RecyclerView Adapter

I am working on a very simple implementation of a RecyclerView that displays data stored in a ViewModel. I am still very new to Android development and am trying to learn the fundamentals. In this situation, all the data to be stored in the…
2
votes
2 answers

notifyItemChanged call onCreateViewHolder

I've a strange problem with my recyclerView adapter, I just want to show/hide ImageView depending of the selection but when I call the notifyItemChanged(selection) in my click listener, it call onCreateViewHolder and take a delay to refresh de view,…
2
votes
0 answers

Using Groupie Library To create a Nested ExpandableGroup in Android with Firestore

I'm missing something. I layered a few ExpandableGroup Items and the first two layers work fine, but when I try to access the third layer, nothing happens. I looked through the debugger, and the items are collected, but they don't show up in the…
2
votes
1 answer

How to manage empty span in GridLayoutManager?

I am setting up contact directory in section recyclerview with grid layout manager, what my problem is that header is also set as an item in the span if the span is empty. I tried using the SpanSizeLookup method. It's not working as I…
2
votes
1 answer

Android: How to implement a SearchView with sections so as to search across multiple lists

I am trying to implement a searchView in my app that enables the user to search a text across multiple lists. Something like below: So far I have been able to implement a searchView that searches for text across a single list and it works great,…
1
vote
3 answers

Get ArrayIndexOutOfBoundsException: length=10; index=-1 when I try to undo a removal of the RecyclerView element

I have a list of the RecyclerView. And I made a swipe removal. Then I made a Snackbar in MainActivity to undo the removal: val onSwipe = object : OnSwipe(this) { override fun onSwiped(viewHolder: ViewHolder, direction: Int) { when…
1
vote
0 answers

How to Implement Sticky header with fast scroll in RecyclerView

I want to enable fast scrolling in my sticky header recyclerview I have below type of recyclerview with sticky header I'm using https://github.com/Codewaves/Sticky-Header-Grid for sticky header view implementation now i want enable fast scrolling…
1
vote
0 answers

How to save instance of recyclerView after a drag and drop

I want to save the state of recyclerView after the drag and drop is there any way so far I have tried everything like sharedPreference,savedInstance etc.. is there any way to solve this issue. What I want is when I close the app and reopen it the…
1
vote
2 answers

Failed to show the grouping date view for the chat messages in the recyclerview android

How can I make the grouping and show the date view in my app. I am using recyclerview and java to show this messages Structure: --------- **12-04-2021** ---------- --Leftsidemessage-- ----rightsidemessgae---- --Leftsidemessage-- …
1
vote
0 answers

Dynamically added Views in RecyclerView duplicate uncontrollably every time scrolled in and out the screen

My project is making a Quiz app using Recycler View. Single view layout is a LinearLayout with one TextVIew showing quiz question, code as below:
1
vote
1 answer

How to add parcelable arraylist to section recycler view adapter

In my application i'm trying to pass an parcelable array list to a sectioned recycler view adapter but inside the add method where we add sections it gives me required string error: This is my parcelable class: public class HostBean implements…
R.Coder
  • 257
  • 3
  • 17
1
vote
2 answers

How to store Array list in shared preferences and access in another fragment

I want to save this array list data in sharedpreferences and access that data in another fragment .Please Give me suggestion Array list content given bellow public String productname; public String productunit; public String…
1
vote
2 answers

RecyclerView shuffling items

I know that this question has been asked several times, but the problem is still present. So the thing is that when i scroll my vertical RecyclerView list items inside ViewHolder are getting shuffled. I have list of some objects with boolean inside…
1
vote
1 answer

Implementation of RecyclerView with cursor Adapter

How can I implement RecyclerView with the cursor. I tried to implement this code but this code uses some class to store each row but I did not want to make some class for the sake of storing each row of the cursor. And also I found this article…
1
2 3 4 5