Search in sources :

Example 1 with ScrollListener

use of com.reactnativenavigation.views.collapsingToolbar.ScrollListener in project react-native-navigation by wix.

the class CollapsingViewPagerScreen method setupCollapseDetection.

private void setupCollapseDetection(CollapsingContentView contentView) {
    ScrollListener scrollListener = getScrollListener((CollapsingView) topBar);
    contentView.setupCollapseDetection(scrollListener, new OnScrollViewAddedListener() {

        @Override
        public void onScrollViewAdded(ScrollView scrollView) {
            ((CollapsingTopBar) topBar).onScrollViewAdded(scrollView);
        }
    });
}
Also used : ScrollView(android.widget.ScrollView) OnScrollListener(com.reactnativenavigation.views.collapsingToolbar.OnScrollListener) ScrollListener(com.reactnativenavigation.views.collapsingToolbar.ScrollListener) OnScrollViewAddedListener(com.reactnativenavigation.views.collapsingToolbar.OnScrollViewAddedListener)

Aggregations

ScrollView (android.widget.ScrollView)1 OnScrollListener (com.reactnativenavigation.views.collapsingToolbar.OnScrollListener)1 OnScrollViewAddedListener (com.reactnativenavigation.views.collapsingToolbar.OnScrollViewAddedListener)1 ScrollListener (com.reactnativenavigation.views.collapsingToolbar.ScrollListener)1