Communicative Between Fragments on Android

后端 未结 5 1552
日久生厌
日久生厌 2021-01-21 19:21

I am attempting to build an Android application that has two tabs, one for a textField/button and TreeMenu (where each element has a checkbox associated with it) and another for

5条回答
  •  余生分开走
    2021-01-21 19:42

    I had the same issue a little time ago with an ArrayList and other data. In the end I decided to create a class that extends application and that holds all the global data and can be accessed everywhere from the app. Do you want and example?

提交回复
热议问题