@ NonNull private ScrollListener createScrollViewScrollListener ( ) { return new ScrollListener ( ) { @ Override public void onScrolled ( final boolean scrolledToTop , final boolean scrolledToBottom ) { adaptDividerVisibilities ( scrolledToTop , scrolledToBottom , true ) ; } } ; }
Creates and returns a listener which allows to observe when the scroll view which is contained by the dialog is scrolled .