I am using recycler view(https://github.com/thoughtbot/expandable-recycler-view) to display list of sections and subsections. It is working just fine. But when I am trying to update the list with live data and using :- recyclerView.adapter = adapter by creating adapter everytime when live data updates. But when data is updated, it collapses the each section regardless it was expanded already. I want to keep state of list as it was when updating it. Can someone tell me how to achieve this or any other way of updating the adapter that keep the state of list same(if it is expanded, remain expanded, collapsed, remain same). Thanks in advance.
Expandable recycler view always collapse on updating adapter
315 views Asked by jyotsna munjal At
0
There are 0 answers
Related Questions in ANDROID
- Delay in loading Html Page(WebView) from assets folder in real android device
- MPAndroidChart method setWordWrapEnabled() not found
- Designing a 'new post' android activity
- Android :EditText inside ListView always update first item in the listview
- Android: Transferring Data via ContentIntent
- Wrong xml being inflated android
- AsyncTask Class
- Unable to receive extras in Android Intent
- Website zoomed out on Android default browser
- Square FloatingActionButton with Android Design Library
Related Questions in ANDROID-RECYCLERVIEW
- Disable Swipe for position in RecyclerView using ItemTouchHelper.SimpleCallback
- Get height for RecyclerView child views at runtime
- RecycleView Adapter notifyItemRangeInserted reload all rows after start position
- Clicking CardView to load a fragment
- Tool_Bar with android CardView and Transparent status bar
- Sync scrolling of multiple RecyclerViews
- RecyclerView gets pushed down when returned to activity
- Background color or Images shuffling on scrolling in recyclerview?
- RecyclerView duplicate issue in Android
- RecyclerView wrap_content with GridLayoutManager
Related Questions in EXPANDABLELISTVIEW
- I have an Expandable Listview with custom adapter. Each parent has a Textview and a switch control. Expandable view is not working
- ExpandableListView expandable list not expanding when its height is wrap_content, and something is below it
- How to put expandable ListView inside a ScrollView
- How to add ExpandableListView in fragment?
- Expandable View to Show fields
- ExpandableListView ClassCastException when using two different ViewHolders for Group
- Put a string into a dialog from a slected list item from a expandable list child
- expandablelistview ArrayIndexOutOfBoundsException
- Android - ExpandableListActivity filtering
- Updating ExpandableListView from Database
Related Questions in EXPANDABLERECYCLERVIEW
- Android Studio : Implementing Expandable RecyclerView in Master/Detail flow Activity chosen from IDE Activity Selection
- How to get such an expandable layout?
- Expandable Image header with string items
- Expandable recycler view always collapse on updating adapter
- collapse all recycler view sections except one.. set image resource
- Incorrect position code when trying to implement RecyclerView click listener
- How to create an expandable RecyclerView in xamarin.android
- In 3 level Nested Expand/ Collapse Vertical(all) Recyclerview data is not updated in inner Recyclerviews after 1st or subsequent time Qrcode scan data
- How to animate an expand/collapse arrow for 180 degree when arrow is clicked?
- Expandable listview with viewpager
Related Questions in EXPANDABLE-TABLE
- Expandable row for dynamic table
- Expandable recycler view always collapse on updating adapter
- create a dynamic expandable table by using angularjs and jquery
- UIButton inside expandable UITableViewCell doesn't dissapear
- How to customize tableview header according to my requirement?
- How to call a component inside a expandable row in Angular 12
- How to decrese the height of ViewController from the bottom when i untap the HeaderView?
- showing the Rows when a Section header is selected
- Expandable table view cell using auto layout is not working?
- Make nested accordion menu with tableView (expandible cells) in swift
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Popular Tags
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)