Created
April 19, 2015 20:12
-
-
Save gouravd/85f8c80817cf053bf451 to your computer and use it in GitHub Desktop.
UltimateRecyclerView hidetoolbar
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
popularFeed.setScrollViewCallbacks(new ObservableScrollViewCallbacks() { | |
@Override | |
public void onScrollChanged(int scrollY, boolean firstScroll, boolean dragging) { | |
} | |
@Override | |
public void onDownMotionEvent() { | |
} | |
@Override | |
public void onUpOrCancelMotionEvent(ObservableScrollState observableScrollState) { | |
if (observableScrollState == ObservableScrollState.DOWN) { | |
popularFeed.showToolbar((Toolbar) (getActivity().findViewById(R.id.toolbar)), popularFeed, Utils.getScreenHeight(callingContext)); | |
popularFeed.showFloatingActionMenu(); | |
} else if (observableScrollState == ObservableScrollState.UP) { | |
popularFeed.hideToolbar((Toolbar) (getActivity().findViewById(R.id.toolbar)), popularFeed, Utils.getScreenHeight(callingContext)); | |
popularFeed.hideFloatingActionMenu(); | |
} else if (observableScrollState == ObservableScrollState.STOP) { | |
} | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment