Wednesday, April 9, 2014

[Problem] modified tab + viewpage seeking solutions which are nested in one viewPage Fragment inside?


posts by rensiren21 edited 2013-06-16 17:22:56
Is not no one to write too complicated, I simply point to say hello

How
1. The bottom of the menu bar tab, the content can not slide, similar to mobile phone Sina Weibo
2, where a special tab content pages can slide around

================ The following is a description =========
complexThe outer layer is 5 tab, a tab corresponding to a Fragment (non-slip), Fragment of content into layout documents viewGroup
Note that this is not sliding around the fragment, the only switch
by tab
And this time, the contents of one tab you want to display is some other fragment (to slide), the general layout of the document into viewPage

The problem is, the control fragment (to slide) is a FragmentActivity, not Fragment, this special "Fragment" not loaded into viewGroup


I am more clumsy way is to this fragment (non-slip) combined fragment (to slide) separately from the layout, viewGroup and viewPage completely overlap, click the tab, by view.setVisiable (xxx), to show, but click to switch After, fragment (to slide) will disappear not show up (fragmentActivity still)

Similar
 
myClass extend FragmentActivity {
viewPage.setAdapter (myFragmentPagerAdapter) ;/ / control viewpage inside the fragment (to slide)
tab.set (OnClickListener) ;/ / listen tab to switch pages
fragmentManager ;/ / control viewGroup inside the fragment (non-slip)

}



Question 1: The above my clumsy approach, fragment (slidable) Why would disappear?
Question 2: There is no way you can put FragmentActivity similar unified management into fragmentManager so it
Question 3: better solution

Thank you for the
<-! Main posts under Banner (D4) -><-! Posts under the main text (D5) ->
Reply:
Top, seeking expert answers
Reply:
Top, how no one answered?
Reply:
No answer, well, themselves, scattered points ~ ~ ~ ~
Reply:
I ask how to solve? I am also very troubled recently, seeking help
Reply:
You now solve it?
Reply:
Not solve it, I also want to achieve this effect

No comments:

Post a Comment