Re: [android-developers] Adding Fragments to a LinearLayout programmatically
On Fri, Aug 30, 2013 at 6:44 PM, Ralph Bergmann | the4thFloor.eu <ralph@the4thfloor.eu> wrote:
When the activity with the FragmentDatasheetWithHeader is open and the
app goes into background and comes back to foreground the nested
Fragments are doubled. But it only appears if the container for the
nested Fragments is a LinearLayout. If the container is a FrameLayout
the nested Fragments are not doubled.
What's going wrong?
1 - Debug your app and gather more information.
2 - Use the logging utility at your disposal to spew out information about what your app is doing.
3 - Use the info from (1) and (2) above to determine whether your app is, in fact, is going through the creation of this fragment twice.
The frame layout may have two items in it, you just may not be able to tell that there are two since they would overlap. In a LinearLayout, it would be obvious.
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
-------------------------------------------------------------------------------------------------
TreKing - Chicago transit tracking app for Android-powered devices
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
---
You received this message because you are subscribed to the Google Groups "Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home