Questions tagged [sectionedrecyclerviewadapter]

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

62 questions
1
vote
1 answer

How to identify the position of child item of section adapter using recycler view while scrolling

I have a recycler view which has section adapter which consists of chat messages and we have ids for every message. On click of message we are able to get the ids of messages but what i want is to get the id of particular message which is currently…
1
vote
1 answer

SectionedRecyclerViewAdapter inside Fratment refresh fragment on data changed

I'm using SectionedRecyclerViewAdapter to create multiple sections in the recyclerview. The issue is when i trigger switchcompat i want both sections to get updated. It means whenever i change switchcompat state to checked i want the item to get…
1
vote
1 answer

Nested Recycler view is laggy while scrolling for the first time

Here, I have two recyclerview that has parentRecyclerViewAdapter and childRecyclerViewAdapter. Parent adapter has LinearLayoutManager.VERTICAL layout manager whereas Clild adapter has GridLayoutManager(mContext, 2) layout manager with…
1
vote
1 answer

findViewHolderForAdapterPosition returns null

I'm using SectionedRecyclerViewAdapter and i'm pass to myAdapter two sections first section has 16 elements , and second section has 18 elements each element has CheckBox Item and i'm try calling method that set all items as checked , but when…
0
votes
0 answers

listening to button click in an adapter from another adapter in android

in my recyclerview adapter I have a bottomsheet in that bottomsheet I have another recyclerview. In the inner recyclerview i have a button. if I click that button I have to update the text in the bottomsheet which is in the other recyclerview…
0
votes
0 answers

Recycler View Duplicating Data after Refreshing the page

when i swipe to refresh the data, the first swipe is ok but after that every swipe reload and add the same data over and over again, by the end i have a list with same items over and over I tried to clear before but i don't understand what's wrong…
0
votes
0 answers

Control dynamically sequencing of Multiple Recycler view types in Android

I am displaying a Recyclerview with multiple ViewTypes. The ViewTypes consist views with data inside another Recyclerview and some layout with Static Images. There can be multiple of this view types with different data. The sequence will be decided…
0
votes
0 answers

How to show dynamic date as Header in the RecyclerView?

I want to show the date dynamically in the header of the RecyclerView and group the items of that date inside it. My data class looks something like this data class Feed( val id: String = "", val title: String = "", val createdAt: Long…
0
votes
0 answers

How to implement hybrid recyclerview with multiple adapter and show item in order?

I want to achieve exactly same as show in picture. I have multiple adapters for multiple recyclerview. I want to combine them in single fragment. I want to achieve the result from each adapter item show sequetially butt not recyclerview in…
0
votes
0 answers

How to let the user to switch from list layout to grid layout on Android?

I have to show a list of grouped (sections) items. The user can choose the way the items are been showed on screen: List layout or Grid layout. In the past I have done it by setting dynamically the span count of a gridviewlayout: When the span count…
0
votes
1 answer

How to add more list of data without clearing the previous in Recycler View Adapter in kotlin?

I'm trying to make a recycler view that load more data as the user scroll down without deleting the previous cell. example:(Instagram, twitter...) when I scroll down the new data is fetched in all the recycler-view cells the previous and the new…
0
votes
1 answer

How to access database from RecyclerView Adapter holder?

I'm in need of advice on how to get data from the database, or whatever approach is best, from a RecyclerView adapter onBindViewHolder() method. Basically I have a list of Transactions that the ViewHolder cycles through, which contains an ID for a…
0
votes
1 answer

Casting Problem in RecyclerViewAdapter with Multiple View Holders

Hey everyone ım trying to add Headers and Items to my recyclerview. But after trying to open the page, its giving me a casting error. I checked my code but ı couldn't find an error for this if you wanna check this is the code public class…
0
votes
0 answers

I am using recycler view with filterable implementation having some memory error

I am using recycler view with filterable implementation . my code is working fine . I have two button in view holder which will appear according to firebase database status. When I click them the method for changing status is working all right. But…
0
votes
2 answers

Recyclerview problem with multiple spinner problem

I have 2 spinners in my recycler view. Now my 2nd spinner value depends on the 1st spinner selected item. I am able to bind data in spinner 1 but when I try to bind spinner 2 data based on setOnItemSelectedListener of spinner 1 it will only bind for…