public void onViewPagerPageChanged() { scrollDown(lastYOffset); View visibleView = getTheVisibileView(scrollViewList); if (!canScroll(visibleView)) { followScrollToolbarLayout(0); onMaterialScrolled(visibleView, 0); } }
private void scrollDown(float yOffset) { if (ENABLE_LOG) Log.d(TAG, "scrollDown"); if (yOffset > mHeader.toolbarLayout.getHeight() * 1.5f) { animateEnterToolbarLayout(yOffset); } else { if (headerAnimator != null) { followScrollToolbarIsVisible = true; } else { headerYOffset = Float.MAX_VALUE; followScrollToolbarLayout(yOffset); } } }
private void scrollUp(float yOffset) { if (ENABLE_LOG) Log.d(TAG, "scrollUp"); followScrollToolbarLayout(yOffset); }