Re: [android-developers] Re: fragment transactions in onLoadFinished()
I am also trying to figure out the correct (or suggested) way to perform a fragment transaction from onLoadFinished(). I understand that it is "bad user experience" to cause the UI to change in some way the user is not expecting while they are doing something. However I have a dual-pane view containing a list fragment on the left with a content fragment on the right based on which list item is selected. My list data is loaded via a Loader and I want to select a list item and show its contents (using a fragment transaction) once the list is loaded. This seems reasonable to me since the an indeterminate progress bar will be showing until the loader finishes, then the previous item (or item 0 if there is no previous saved item) should be show in the content panel on the right. This is expected behavior by the user, however I can't perform a fragment transaction in onLoadFinished() to make this happen. Is there some other way I should be doing this?
Thanks,
Andrew
-- 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