1
votes

That's the idea: A ViewPager(Horizontal) insde ScrollView(Vertical). ViewPager will show diferents fragments depending on the tab, and has vertical scroll to show all fragment view on the screen.

But the thing is ViewPager isn't showing the fragment entirely, it doesn't expand the fragment's height or the ScrollView height.

There's a way to expand dinamically the ViewPager height or the ScrollView height to show completely the fragment using scroll?

<ScrollView>
 <ImageView/>
 <ViewPager>        
    <PagerTabStrip/>
 </ViewPager>
 <Button/> </ScrollView>
1

1 Answers

0
votes

Rather than putting the ScrollView outside the ViewPager, instead you should make any views that populate the ViewPager (and need to scroll) ScrollViews.

This way each view (in the view pager) will have it's own vertical scroll offset that will be remembered as you page through the views.