Java Code Examples for android.widget.AbsListView#OnScrollListener

The following examples show how to use android.widget.AbsListView#OnScrollListener . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: FloatActionButtonScrollDetectorHelper.java    From talk-android with MIT License 5 votes vote down vote up
public void attachToListView(@NonNull AbsListView listView,
                             ScrollDirectionListener scrollDirectionListener,
                             AbsListView.OnScrollListener onScrollListener) {
    AbsListViewScrollDetectorImpl scrollDetector = new AbsListViewScrollDetectorImpl();
    scrollDetector.setScrollDirectionListener(scrollDirectionListener);
    scrollDetector.setOnScrollListener(onScrollListener);
    scrollDetector.setListView(listView);
    scrollDetector.setScrollThreshold(DensityUtil.dip2px(MainApp.CONTEXT, 4));
    listView.setOnScrollListener(scrollDetector);
}
 
Example 2
Source File: CompositeAbsListViewOnScrollListener.java    From AbsListViewHelper with MIT License 4 votes vote down vote up
public void registerOnScrollListener(final AbsListView.OnScrollListener listener) {
    add(listener);
}
 
Example 3
Source File: QuickReturnListViewOnScrollListener.java    From ChipHellClient with Apache License 2.0 4 votes vote down vote up
public void registerExtraOnScrollListener(AbsListView.OnScrollListener listener) {
    mExtraOnScrollListenerList.add(listener);
}
 
Example 4
Source File: AutoHideButtonFloat.java    From MoeGallery with GNU General Public License v3.0 4 votes vote down vote up
public void setOnScrollListener(AbsListView.OnScrollListener onScrollListener) {
    this.onScrollListener = onScrollListener;
}
 
Example 5
Source File: QuickReturnListViewOnScrollListener.java    From QuickReturn with Apache License 2.0 4 votes vote down vote up
public void registerExtraOnScrollListener(AbsListView.OnScrollListener listener) {
    mExtraOnScrollListenerList.add(listener);
}
 
Example 6
Source File: CompositeAbsListViewOnScrollListener.java    From AbsListViewHelper with MIT License 4 votes vote down vote up
public void unregisterOnScrollListener(final AbsListView.OnScrollListener listener) {
    remove(listener);
}
 
Example 7
Source File: CompositeAbsListViewOnScrollListener.java    From QuickReturn with MIT License 4 votes vote down vote up
@Override
public void onScrollStateChanged(final AbsListView view, final int scrollState) {
  for (AbsListView.OnScrollListener listener : this) {
    listener.onScrollStateChanged(view, scrollState);
  }
}
 
Example 8
Source File: RecyclerToListViewScrollListener.java    From AndroidBase with Apache License 2.0 4 votes vote down vote up
public RecyclerToListViewScrollListener(AbsListView.OnScrollListener scrollListener) {
    this.scrollListener = scrollListener;
}
 
Example 9
Source File: HighingRefreshListView.java    From HighingRefresh with Apache License 2.0 4 votes vote down vote up
@Override
public void setOnScrollListener(AbsListView.OnScrollListener l) {
	this.mOnScrollListener = l;
}
 
Example 10
Source File: AbsListViewHelper.java    From AbsListViewHelper with MIT License 4 votes vote down vote up
public AbsListViewHelper registerOnScrollListener(AbsListView.OnScrollListener listener) {
    scrollListener.registerOnScrollListener(listener);
    return this;
}
 
Example 11
Source File: ScrollingPauseLoadManager.java    From sketch with Apache License 2.0 4 votes vote down vote up
public void setOnScrollListener(AbsListView.OnScrollListener absListViewScrollListener) {
    this.absListScrollListener = absListViewScrollListener;
}
 
Example 12
Source File: BaseListAdapter.java    From CoreModule with Apache License 2.0 4 votes vote down vote up
public void addOnScrollListener(AbsListView.OnScrollListener l) {
    this.listener = l;
}
 
Example 13
Source File: FloatActionButtonScrollDetectorHelper.java    From talk-android with MIT License 4 votes vote down vote up
public void setOnScrollListener(AbsListView.OnScrollListener onScrollListener) {
    mOnScrollListener = onScrollListener;
}
 
Example 14
Source File: StickyHeaderListView.java    From StickyHeaderListView with Apache License 2.0 4 votes vote down vote up
public void setOnScrollListener(AbsListView.OnScrollListener l) {
    mExternalOnScrollListener = l;
}
 
Example 15
Source File: EndScrollListener.java    From Paginate with Apache License 2.0 4 votes vote down vote up
public AbsListView.OnScrollListener getDelegateScrollListener() {
    return delegate;
}
 
Example 16
Source File: AutoHideButtonFloat.java    From MaterialDesignLibrary with Apache License 2.0 4 votes vote down vote up
public void setOnScrollListener(AbsListView.OnScrollListener onScrollListener) {
    this.onScrollListener = onScrollListener;
}
 
Example 17
Source File: FloatingActionButton.java    From UltimateAndroid with Apache License 2.0 4 votes vote down vote up
protected AbsListView.OnScrollListener getOnScrollListener() {
    return mOnScrollListener;
}
 
Example 18
Source File: SpeedyQuickReturnListViewOnScrollListener.java    From ChipHellClient with Apache License 2.0 4 votes vote down vote up
public void registerExtraOnScrollListener(AbsListView.OnScrollListener listener) {
    mExtraOnScrollListeners.add(listener);
}
 
Example 19
Source File: AbsListViewPaginate.java    From Paginate with Apache License 2.0 2 votes vote down vote up
/**
 * Paginate is using OnScrollListener in order to detect when list is scrolled near the end. That means that
 * internal listener is attached on AbsListView. Since AbsListView can have only one OnScrollListener it is
 * needed to use this method to add additional OnScrollListener (as delegate).
 *
 * @param onScrollListener that will be called when list is scrolled.
 * @return {@link com.paginate.abslistview.AbsListViewPaginate.Builder}
 */
public Builder setOnScrollListener(AbsListView.OnScrollListener onScrollListener) {
    this.onScrollListener = onScrollListener;
    return this;
}
 
Example 20
Source File: Crossbow.java    From CrossBow with Apache License 2.0 2 votes vote down vote up
public ScrollListener(AbsListView.OnScrollListener delgateListener) {

            this.delgateListener = delgateListener;
        }