android-fragments
Fragment garbage collection issue
I\'m writing an app where I\'m using fragments, and I\'m seeing a really confusing behavior in my DDMS heap dumps: When I initially run my application, let\'s say there are a couple of fragments in th[详细]
2023-03-22 21:43 分类:问答Same fragments in one activity problem
I\'m coding my first android app with fragments and here is my problem. I\'ve got main activity and 3 fragments in it. All 3 fr开发者_如何学JAVAagments are the same class so all 3 fragments has the sa[详细]
2023-03-22 13:10 分类:问答android fragment animation using compatibility package
How can I use animation for transitions between fragments ? I tried FragmentTransaction.setTransition(FragmentTransaction.TRANSIT_FRAGMENT_CLOSE);[详细]
2023-03-22 11:38 分类:问答Transition to FragmentActivity
I can transition to a开发者_如何学Python Fragment class using the code below, but how do i transition to a FragmentActivity, using the same code.[详细]
2023-03-22 10:06 分类:问答android fragment- How to save states of views in a fragment when another fragment is pushed on top of it
In android, a fragment (say FragA) gets added to the backstack and another fragment (say FragB) comes to the top. Now on hitting back FragA comes to the top and the onCreateView() is called. Now I had[详细]
2023-03-22 08:53 分类:问答Fragments vs. Deprecated TabActivity on a pre 3.0 device
So now that the TabActivity is officially deprecated as of 3.0, I\'m going through and switching all of my TabActivities to Fragments. But first I decided to research a little about Fragments[详细]
2023-03-22 05:38 分类:问答Why is NPE thrown when finishing Activity?
I have an error that has been driving me crazy for days.Unfortunately, I can not show you the code for two reason, my boss will not appreciate it and the codebase is too large to share.The error occur[详细]
2023-03-22 02:54 分类:问答Android Fragment Navigation
I have a screen with 4 fragments inside it:frag1,frag2,frag3,frag4.In frag1,there is a listview displaying some items.So frag1 is 开发者_运维问答a listfragment. Now on the click of listitem i want to[详细]
2023-03-22 01:47 分类:问答Android: CursorLoader crash on non-topmost Fragment
I have a few ListFragments that use a CursorLoader to retrieve their content.As the user drills down through the content, one Fragment replaces another (the Activity remains the same).But if the conte[详细]
2023-03-21 19:38 分类:问答Orientation change using fragments - wrong activity start
I have application which uses fragments. Depending on screen size and orientation I\'m displaying different layouts:1. layout-fragment - list of choices2. layout-fragment - display selected choice I h[详细]
2023-03-21 10:29 分类:问答