TreeView icon indicating copy to clipboard operation
TreeView copied to clipboard

How can keep state of tree with navigation when back?

Open minhson95th opened this issue 2 years ago • 3 comments

I want to keep state of tree after back from another fragment. How can i do? I use with Android Navigation Component

https://user-images.githubusercontent.com/46039866/221523310-77ae7b42-ee29-4c19-a304-b0b42346d49b.mp4

Capture1

minhson95th avatar Feb 27 '23 09:02 minhson95th

Hello @minhson95th,

For now, you need to save and restore the nodes because the state is on each TreeNode object, maybe we can find a better solution that easy to use and not effect the performance

Thank you Amr Hesham

AmrDeveloper avatar Feb 28 '23 20:02 AmrDeveloper

Hello @minhson95th,

For now, you need to save and restore the nodes because the state is on each TreeNode object, maybe we can find a better solution that easy to use and not effect the performance

Thank you Amr Hesham

Do you have any solution?

minhson95th avatar Mar 01 '23 01:03 minhson95th

@minhson95th Still thinking of good solution that can be part of the library

AmrDeveloper avatar Mar 01 '23 16:03 AmrDeveloper