Created
December 18, 2014 20:22
-
-
Save HanCheng/d6b4dc6b01101f83b306 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. adding the interface in SearchResultFragmentsPagerAdapter.java called OnFragmentScrollChangedListener() and declare virtual function called onPageMoved(int scrollY, boolean isDragging); (scrollY is horizontal position. ) | |
2. creating the enum type called ScrollState, with UP, Down | |
3. instaniate that interface named mOnFragmentScrollChangedListener, and override the onTouchEvent() method, and deal with some variables | |
4. In FLightSearchResultsActivity, implements OnFragmentScrollChangedListener, and override onPageMoved() method, | |
onPageMoved() { | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment