How to save fragment state while navigating with navigation component

后端 未结 6 994
既然无缘
既然无缘 2021-01-02 14:24

I\'m trying to create a single activity app using android architecture components. I have a fragment A which has some textfields, when user pushes a button I navigate to fra

6条回答
  •  生来不讨喜
    2021-01-02 14:47

    Just a little thing , if your views doesn't have id state will not kept! This case is not mentioned in Google docs unfortunately. so , SET ID TO YOUR VIEWS IN FRAGMENT

提交回复
热议问题