Back to project page android-slideshow-widget.
The source code is released under:
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions...
If you think the Android project android-slideshow-widget 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.marvinlabs.widget.slideshow.picasso; // ww w. j ava 2 s. c om import android.content.Context; import com.squareup.picasso.Picasso; import com.squareup.picasso.RequestCreator; import java.util.Collection; /** * An implementation of GenericPicassoBitmapAdapter to load application resources * <p/> * Created by Vincent Mimoun-Prat @ MarvinLabs on 29/05/2014. */ public class PicassoResourceBitmapAdapter extends GenericPicassoBitmapAdapter<Integer> { public PicassoResourceBitmapAdapter(Context context, Collection<Integer> items) { super(context, items); } @Override protected RequestCreator createRequestCreator(Picasso picasso, Integer resourceId) { return picasso.load(resourceId).noFade().skipMemoryCache(); } }