Java 类com.bumptech.glide.ListPreloader.PreloadModelProvider 实例源码

项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Constructor that accepts interfaces for providing the dimensions of images to preload, the list
 * of models to preload for a given position, and the request to use to load images.
 *
 * @param preloadModelProvider     Provides models to load and requests capable of loading them.
 * @param preloadDimensionProvider Provides the dimensions of images to load.
 * @param maxPreload               Maximum number of items to preload.
 */
public RecyclerViewPreloader(RequestManager requestManager,
    PreloadModelProvider<T> preloadModelProvider,
    PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {

  ListPreloader<T> listPreloader = new ListPreloader<>(requestManager, preloadModelProvider,
      preloadDimensionProvider, maxPreload);
  recyclerScrollListener = new RecyclerToListViewScrollListener(listPreloader);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Constructor that accepts interfaces for providing the dimensions of images to preload, the list
 * of models to preload for a given position, and the request to use to load images.
 *
 * @param preloadModelProvider     Provides models to load and requests capable of loading them.
 * @param preloadDimensionProvider Provides the dimensions of images to load.
 * @param maxPreload               Maximum number of items to preload.
 */
public RecyclerViewPreloader(RequestManager requestManager,
    PreloadModelProvider<T> preloadModelProvider,
    PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {

  ListPreloader<T> listPreloader = new ListPreloader<>(requestManager, preloadModelProvider,
      preloadDimensionProvider, maxPreload);
  recyclerScrollListener = new RecyclerToListViewScrollListener(listPreloader);
}
项目:FastAndroid    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link android.support.v7.app.AppCompatActivity}.
 */
public RecyclerViewPreloader(AppCompatActivity activity,
                             PreloadModelProvider<T> preloadModelProvider,
                             PreloadSizeProvider<T> preloadDimensionProvider,
                             int maxPreload) {

    this(Glide.with(activity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:FastAndroid    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link android.support.v4.app.Fragment}.
 */
public RecyclerViewPreloader(Fragment fragment,
                             PreloadModelProvider<T> preloadModelProvider,
                             PreloadSizeProvider<T> preloadDimensionProvider,
                             int maxPreload) {

    this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:FastAndroid    文件:RecyclerViewPreloader.java   
/**
 * Constructor that accepts interfaces for providing the dimensions of images to preload, the list
 * of models to preload for a given position, and the request to use to load images.
 *
 * @param preloadModelProvider     Provides models to load and requests capable of loading them.
 * @param preloadDimensionProvider Provides the dimensions of images to load.
 * @param maxPreload               Maximum number of items to preload.
 */
public RecyclerViewPreloader(RequestManager requestManager,
                             PreloadModelProvider<T> preloadModelProvider,
                             PreloadSizeProvider<T> preloadDimensionProvider,
                             int maxPreload) {

    ListPreloader<T> listPreloader = new ListPreloader<>(requestManager,
            preloadModelProvider,
            preloadDimensionProvider,
            maxPreload);

    recyclerScrollListener = new RecyclerToListViewScrollListener(listPreloader);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link Activity}.
 */
public RecyclerViewPreloader(Activity activity,
    PreloadModelProvider<T> preloadModelProvider,
    PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {
  this(Glide.with(activity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link FragmentActivity}.
 */
public RecyclerViewPreloader(FragmentActivity fragmentActivity,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragmentActivity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link Fragment}.
 */
public RecyclerViewPreloader(Fragment fragment,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link android.support.v4.app.Fragment}.
 */
public RecyclerViewPreloader(android.support.v4.app.Fragment fragment,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link Activity}.
 */
public RecyclerViewPreloader(Activity activity,
    PreloadModelProvider<T> preloadModelProvider,
    PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {
  this(Glide.with(activity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link FragmentActivity}.
 */
public RecyclerViewPreloader(FragmentActivity fragmentActivity,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragmentActivity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link Fragment}.
 */
public RecyclerViewPreloader(Fragment fragment,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:GitHub    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link android.support.v4.app.Fragment}.
 */
public RecyclerViewPreloader(android.support.v4.app.Fragment fragment,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:AndroidBase    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link Activity}.
 */
public RecyclerViewPreloader(Activity activity,
    PreloadModelProvider<T> preloadModelProvider,
    PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {
  this(Glide.with(activity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:AndroidBase    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link FragmentActivity}.
 */
public RecyclerViewPreloader(FragmentActivity fragmentActivity,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragmentActivity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:AndroidBase    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link Fragment}.
 */
public RecyclerViewPreloader(Fragment fragment,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:AndroidBase    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link android.support.v4.app.Fragment}.
 */
public RecyclerViewPreloader(android.support.v4.app.Fragment fragment,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:gankmaku    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link Activity}.
 */
public RecyclerViewPreloader(Activity activity, PreloadModelProvider<T> preloadModelProvider,
    PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {
  this(Glide.with(activity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:gankmaku    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link FragmentActivity}.
 */
public RecyclerViewPreloader(FragmentActivity fragmentActivity,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragmentActivity), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:gankmaku    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link Fragment}.
 */
public RecyclerViewPreloader(Fragment fragment, PreloadModelProvider<T> preloadModelProvider,
    PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {
  this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:gankmaku    文件:RecyclerViewPreloader.java   
/**
 * Helper constructor that accepts an {@link android.support.v4.app.Fragment}.
 */
public RecyclerViewPreloader(android.support.v4.app.Fragment fragment,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {
  this(Glide.with(fragment), preloadModelProvider, preloadDimensionProvider, maxPreload);
}
项目:AndroidBase    文件:RecyclerViewPreloader.java   
/**
 * Constructor that accepts interfaces for providing the dimensions of images to preload, the list
 * of models to preload for a given position, and the request to use to load images.
 *
 * @param preloadModelProvider     Provides models to load and requests capable of loading them.
 * @param preloadDimensionProvider Provides the dimensions of images to load.
 * @param maxPreload               Maximum number of items to preload.
 */
public RecyclerViewPreloader(RequestManager requestManager,
    PreloadModelProvider<T> preloadModelProvider,
    PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {
  ListPreloader<T> listPreloader = new ListPreloader<>(preloadModelProvider,
      preloadDimensionProvider, maxPreload);
  recyclerScrollListener = new RecyclerToListViewScrollListener(listPreloader);
}
项目:gankmaku    文件:RecyclerViewPreloader.java   
/**
 * Constructor that accepts interfaces for providing the dimensions of images to preload, the
 * list
 * of models to preload for a given position, and the request to use to load images.
 *
 * @param preloadModelProvider Provides models to load and requests capable of loading them.
 * @param preloadDimensionProvider Provides the dimensions of images to load.
 * @param maxPreload Maximum number of items to preload.
 */
public RecyclerViewPreloader(RequestManager requestManager,
    PreloadModelProvider<T> preloadModelProvider, PreloadSizeProvider<T> preloadDimensionProvider,
    int maxPreload) {

  ListPreloader listPreloader =
      new ListPreloader<>(preloadModelProvider, preloadDimensionProvider, maxPreload);
  recyclerScrollListener = new RecyclerToListViewScrollListener(listPreloader);
}