Skip to content

Instantly share code, notes, and snippets.

@HanCheng
Created December 18, 2014 20:22
Show Gist options
  • Save HanCheng/d6b4dc6b01101f83b306 to your computer and use it in GitHub Desktop.
Save HanCheng/d6b4dc6b01101f83b306 to your computer and use it in GitHub Desktop.
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