[android-developers] Fragments slow to load when coming back
Hello!
Here's the situation :
I have a parent activity that have 3 fragments associated with it. Basically, there is the actionBar and three tabs. Each tab holds a fragment in which there is a listview.
The data are the same for all the 3 listviews, just filtered in different way so, in the parent activity, I call a webservice to fetch the data and then I push the data to all three fragments and populate their listviews.
When I select an item from one of the listviews, I land on another activity. The PROBLEM is, when I come back (to the activity with 3 fragments), there seems to be a lag from the moment I push the actionbar up button and the activity loads. Tough to explain, but when I hit the up button, it stays selected for about 2 seconds and then switch to the activity.
I'm using setRetainInstance on fragments...other than that, I don't know what could be the cause.
Do you have any idea? Anything common about using fragments and coming back to this activity after leaving it.
Thank you!
-- You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home