Andriod-Seamless-ViewPager-Header
Andriod-Seamless-ViewPager-Header copied to clipboard
Enable ScrollView on the Header of ViewPager
Thanks very much for the project and it is useful to me. However, as the height of my header accounts for 85% of the screen Height, it is a bit difficult for users to tap the ViewPager fragment and for the fragment to scroll to the top
How would i enable a "vertical scroll" feature on the header in order to solve the issue?
I can not understand your "vertical scroll", could you please say in detail
As my HeaderLayout's height is 90% of the screen, i hope that when the user touches the screen the drag down, the "Header Layout" and the "ViewPager" will scroll up so that more content of the ViewPager is being shown.
I attempted to put both HeaderLayout and ViewPager Tabs in a scroll view but i still would not scroll the HeaderLayout.
An example will be the Xueqiu apps https://play.google.com/store/apps/details?id=com.xueqiu.android
++++++++++++++++++++++++
HeaderLayout
Height: 90% of screen height
++++++++++++++++++++++++
ViewPager Tabs
10% of screen height
++++++++++++++++++++++++
_Post Touch and drag Header Layout_
++++++++++++++++++++++++
HeaderLayout
Height: 20% of screen height
++++++++++++++++++++++++
ViewPager Tabs
80% of screen height
++++++++++++++++++++++++
I am sorry that I have no time to deal with this issue. Whatever I recommend you to use "CoordinatorLayout" in android design support jar, which can easily do this.
------------------ Original ------------------ From: "lvsMark";[email protected]; Date: Thu, Jul 9, 2015 05:22 PM To: "kaedea/Andriod-Seamless-ViewPager-Header"[email protected];
Subject: Re: [Andriod-Seamless-ViewPager-Header] Enable ScrollView on theHeader of ViewPager (#2)
As my HeaderLayout's height is 90% of the screen, i hope that when the user touches the screen the drag down, the "Header Layout" and the "ViewPager" will scroll up so that more content of the ViewPager is being shown.
I attempted to put both HeaderLayout and ViewPager Tabs in a scroll view but i still would not scroll the HeaderLayout.
An example will be the Xueqiu apps https://play.google.com/store/apps/details?id=com.xueqiu.android
==================== ======================== HeaderLayout Height: 70% of screen Height Height: 90% of screen height
=======================
ViewPager Tabs
Post Touch 30% of screen Height
==================== down on ViewPager Tabs HeaderLayout 10% of screen height ==================== ========================
— Reply to this email directly or view it on GitHub.