Vote count:
0
As title, the three fragments are add in ViewPager. Each Fragment has a listview in it.
When I start a new activity, the adapter on listview would call getView. In this case, the list item view would be created again.
06-24 17:24:16.817: V/FragmentManager(8513): movefrom RESUMED: FragmentA{48a93f88 #0 id=0x7f0600ed}
06-24 17:24:16.817: V/FragmentManager(8513): movefrom RESUMED: FragmentA{48b4bf48 #1 id=0x7f06006e android:switcher:2131099758:0}
06-24 17:24:16.817: V/FragmentManager(8513): movefrom RESUMED: FragmentA{48b4e408 #2 id=0x7f06006e android:switcher:2131099758:1}
06-24 17:24:16.817: D/MainActivity(8513): onPause
06-24 17:24:17.197: D/FragmentA$Adaptor(8513): getView
06-24 17:24:17.207: D/FragmentA$Adaptor(8513): getView
06-24 17:24:17.358: D/MainActivity(8513): onStop
06-24 17:24:17.388: D/FragmentA(8513): onStop
06-24 17:24:17.388: D/FragmentA(8513): onStop
06-24 17:24:17.388: D/FragmentA(8513): onStop
I would like to know why the adapter getView would be called while Activity onPause?
Thanks.
asked 40 secs ago
Aucun commentaire:
Enregistrer un commentaire