Back to project page picasso.
The source code is released under:
Apache License
If you think the Android project picasso listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.example.picasso; /* ww w .j a v a2 s . c o m*/ import android.content.Context; import android.widget.AbsListView; import com.squareup.picasso.Picasso; public class SampleScrollListener implements AbsListView.OnScrollListener { private final Context context; public SampleScrollListener(Context context) { this.context = context; } @Override public void onScrollStateChanged(AbsListView view, int scrollState) { final Picasso picasso = Picasso.with(context); if (scrollState == SCROLL_STATE_IDLE || scrollState == SCROLL_STATE_TOUCH_SCROLL) { picasso.resumeTag(context); } else { picasso.pauseTag(context); } } @Override public void onScroll(AbsListView view, int firstVisibleItem, int visibleItemCount, int totalItemCount) { // Do nothing. } }