do you know, what's the best practice to implement dismissible item on a RecyclerView or ListView? I can see this UI pattern e.g. in settings app to close DataSaver.
Asked
Active
Viewed 184 times
1
-
is this nested recyclerview? – Manoj Perumarath Mar 28 '17 at 09:57
-
I thinks is a expandable-recycler-view. Check out this : https://robots.thoughtbot.com/introducing-expandablerecyclerview – Haresh Chhelana Mar 28 '17 at 10:00
-
Might Help: [Expand a RecyclerView](http://stackoverflow.com/a/38623873/3142192) – Shashidhar Mayannavar Mar 28 '17 at 10:08
-
I don't wanna expand, I wanna dismiss this item (action "TURN OFF" on battery saver item). Sorry for the misunderstanding. – jakub Mar 28 '17 at 10:14
-
@qbait, You want to dismiss TURN OFF item on click? – Shashidhar Mayannavar Mar 28 '17 at 10:30
-
no, I wanna dismiss the whole mint "battery saver" row item as it happens when you press "TURN OFF" in android settings – jakub Mar 28 '17 at 10:34
-
ok, I solved it. I made the RecyclerView with custom item and later implemented dismiss button that calls notifyItemRemoved(position); – jakub Mar 29 '17 at 11:27