当前位置: 首页>>代码示例>>Java>>正文


Java ListPreloader类代码示例

本文整理汇总了Java中com.bumptech.glide.ListPreloader的典型用法代码示例。如果您正苦于以下问题:Java ListPreloader类的具体用法?Java ListPreloader怎么用?Java ListPreloader使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ListPreloader类属于com.bumptech.glide包,在下文中一共展示了ListPreloader类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: RecyclerViewPreloader

import com.bumptech.glide.ListPreloader; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:17,代码来源:RecyclerViewPreloader.java

示例2: RecyclerViewPreloader

import com.bumptech.glide.ListPreloader; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:hushengjun,项目名称:FastAndroid,代码行数:21,代码来源:RecyclerViewPreloader.java

示例3: setupImagePreload

import com.bumptech.glide.ListPreloader; //导入依赖的package包/类
private void setupImagePreload() {
    mPreloadRequest = Glide.with(this)
            .fromMediaStore()
            .diskCacheStrategy(DiskCacheStrategy.NONE)
            .fitCenter();

    final AsymmetricSizeProvider sizeProvider = new AsymmetricSizeProvider(getActivity(), mAdapter);
    final ListPreloader<FodexLayoutSpecItem> preloader = new ListPreloader<>(mAdapter, sizeProvider, PRELOAD_SIZE);
    mFloatingActionMenu.attachToListView(mGridView, null, preloader);
}
 
开发者ID:dyhpoon,项目名称:Fo.dex,代码行数:11,代码来源:FodexBaseFragment.java

示例4: RecyclerViewPreloader

import com.bumptech.glide.ListPreloader; //导入依赖的package包/类
/**
 * 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(PreloadModelProvider<T> preloadModelProvider,
		PreloadSizeProvider<T> preloadDimensionProvider, int maxPreload) {

	ListPreloader<T> listPreloader = new ListPreloader<>(preloadModelProvider,
			preloadDimensionProvider, maxPreload);
	recyclerScrollListener = new RecyclerToListViewScrollListener(listPreloader);
}
 
开发者ID:TWiStErRob,项目名称:glide-support,代码行数:16,代码来源:RecyclerViewPreloader.java

示例5: RecyclerViewPreloader

import com.bumptech.glide.ListPreloader; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:lujianzhao,项目名称:AndroidBase,代码行数:16,代码来源:RecyclerViewPreloader.java

示例6: RecyclerViewPreloader

import com.bumptech.glide.ListPreloader; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:pkliang,项目名称:gankmaku,代码行数:18,代码来源:RecyclerViewPreloader.java


注:本文中的com.bumptech.glide.ListPreloader类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。