MaterialViewPager icon indicating copy to clipboard operation
MaterialViewPager copied to clipboard

Header Logo is clicked when its not visible

Open arunrajgm opened this issue 8 years ago • 4 comments

Hi header logo is clicked on a normal .its fine. But if we scroll to bottom its hided but click listener is still working. Can u please fix asap.

arunrajgm avatar Sep 11 '16 10:09 arunrajgm

You may do that using onPageScrolled method of ViewPager. Get the screen size and write your codes using if statement.

nuhkoca avatar Sep 11 '16 17:09 nuhkoca

Sorry I can't get it.can u help me? Can I get small help in coding level..

On 11 Sep 2016 22:55, "Nuh Koca" [email protected] wrote:

You may do that using onPageScrolled method of ViewPager. Get the screen size and write your codes using if statement.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/florent37/MaterialViewPager/issues/282#issuecomment-246192184, or mute the thread https://github.com/notifications/unsubscribe-auth/AVGsjzHgmqsj_6sKma3AOSyagjCZ5JERks5qpDl9gaJpZM4J5-xh .

arunrajgm avatar Sep 11 '16 17:09 arunrajgm

hey while using onPageScrolled method of ViewPager.its not a interface.its directly asking values. Then how can i use this method for get the screen position and write a code using if. And scroll page listener also asking to set the api to 23.i m not like this approach.

i need to get the scrolling position for the view pager to fix the logo click issue. while its not visible.

arunrajgm avatar Sep 13 '16 07:09 arunrajgm

Becoz of the current position only i set the header click listener to null. And again asign the click listener. Hope is this undestand.

arunrajgm avatar Sep 13 '16 07:09 arunrajgm