OnScrollListener ( )源码实例Demo

android.widget.AbsListView#OnScrollListener ( )源码实例Demo

下面列出了android.widget.AbsListView#OnScrollListener ( ) 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

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);
}
 
public void registerExtraOnScrollListener(AbsListView.OnScrollListener listener) {
    mExtraOnScrollListeners.add(listener);
}
 
源代码3 项目: UltimateAndroid   文件: FloatingActionButton.java
protected AbsListView.OnScrollListener getOnScrollListener() {
    return mOnScrollListener;
}
 
public void setOnScrollListener(AbsListView.OnScrollListener onScrollListener) {
    this.onScrollListener = onScrollListener;
}
 
源代码5 项目: Paginate   文件: EndScrollListener.java
public AbsListView.OnScrollListener getDelegateScrollListener() {
    return delegate;
}
 
public void setOnScrollListener(AbsListView.OnScrollListener l) {
    mExternalOnScrollListener = l;
}
 
public void setOnScrollListener(AbsListView.OnScrollListener onScrollListener) {
    mOnScrollListener = onScrollListener;
}
 
源代码8 项目: CoreModule   文件: BaseListAdapter.java
public void addOnScrollListener(AbsListView.OnScrollListener l) {
    this.listener = l;
}
 
源代码9 项目: sketch   文件: ScrollingPauseLoadManager.java
public void setOnScrollListener(AbsListView.OnScrollListener absListViewScrollListener) {
    this.absListScrollListener = absListViewScrollListener;
}
 
public void registerOnScrollListener(final AbsListView.OnScrollListener listener) {
    add(listener);
}
 
源代码11 项目: AbsListViewHelper   文件: AbsListViewHelper.java
public AbsListViewHelper registerOnScrollListener(AbsListView.OnScrollListener listener) {
    scrollListener.registerOnScrollListener(listener);
    return this;
}
 
源代码12 项目: HighingRefresh   文件: HighingRefreshListView.java
@Override
public void setOnScrollListener(AbsListView.OnScrollListener l) {
	this.mOnScrollListener = l;
}
 
public RecyclerToListViewScrollListener(AbsListView.OnScrollListener scrollListener) {
    this.scrollListener = scrollListener;
}
 
@Override
public void onScrollStateChanged(final AbsListView view, final int scrollState) {
  for (AbsListView.OnScrollListener listener : this) {
    listener.onScrollStateChanged(view, scrollState);
  }
}
 
public void unregisterOnScrollListener(final AbsListView.OnScrollListener listener) {
    remove(listener);
}
 
public void registerExtraOnScrollListener(AbsListView.OnScrollListener listener) {
    mExtraOnScrollListenerList.add(listener);
}
 
源代码17 项目: MoeGallery   文件: AutoHideButtonFloat.java
public void setOnScrollListener(AbsListView.OnScrollListener onScrollListener) {
    this.onScrollListener = onScrollListener;
}
 
public void registerExtraOnScrollListener(AbsListView.OnScrollListener listener) {
    mExtraOnScrollListenerList.add(listener);
}
 
源代码19 项目: Paginate   文件: AbsListViewPaginate.java
/**
 * 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;
}
 
源代码20 项目: CrossBow   文件: Crossbow.java
public ScrollListener(AbsListView.OnScrollListener delgateListener) {

            this.delgateListener = delgateListener;
        }