• 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏吧

Java ImageLoadProxy类的典型用法和代码示例

java 1次浏览

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

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

示例1: onCreate

点赞 4

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
public void onCreate() {
    StrictModeUtil.init();
    super.onCreate();
    refWatcher = LeakCanary.install(this);
    mContext = this;
    ImageLoadProxy.initImageLoader(this);

    if (BuildConfig.DEBUG) {
        Logger.init().hideThreadInfo().setMethodCount(1).setLogLevel(LogLevel.FULL);
    }

    Stetho.initialize(
            Stetho.newInitializerBuilder(this)
                    .enableDumpapp(Stetho.defaultDumperPluginsProvider(this))
                    .enableWebKitInspector(Stetho.defaultInspectorModulesProvider(this))
                    .build());

}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan,
代码行数:20,
代码来源:JDApplication.java

示例2: onCreate

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
public void onCreate() {
    StrictModeUtil.init();
    super.onCreate();
    refWatcher = LeakCanary.install(this);
    mContext = this;
    ImageLoadProxy.initImageLoader(this);

    if (BuildConfig.DEBUG) {
        Logger.init().hideThreadInfo().setMethodCount(1).setLogLevel(LogLevel.FULL);
    }
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_OkHttpWithVolley,
代码行数:13,
代码来源:JDApplication.java

示例3: onDestroy

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
public void onDestroy() {
    super.onDestroy();
    JDApplication.getRefWatcher(getActivity()).watch(this);
    RequestManager.cancelAll(this);
    ImageLoadProxy.getImageLoader().clearMemoryCache();
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_OkHttpWithVolley,
代码行数:8,
代码来源:BaseFragment.java

示例4: FreshNewsAdapter

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
public FreshNewsAdapter(Activity activity, LoadFinishCallBack loadFinisCallBack, LoadResultCallBack loadResultCallBack, boolean isLargeMode) {
    this.mActivity = activity;
    this.isLargeMode = isLargeMode;
    this.mLoadFinisCallBack = loadFinisCallBack;
    this.mLoadResultCallBack = loadResultCallBack;
    mFreshNews = new ArrayList<>();

    int loadingResource = isLargeMode ? R.drawable.ic_loading_large : R.drawable.ic_loading_small;
    options = ImageLoadProxy.getOptions4PictureList(loadingResource);
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_OkHttpWithVolley,
代码行数:11,
代码来源:FreshNewsAdapter.java

示例5: onDestroy

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
protected void onDestroy() {
    super.onDestroy();
    if (connection != null && connection.isConnected()) {
        connection.disconnect();
    }

    if (img.getVisibility() == View.VISIBLE) {
        ImageLoadProxy.getImageLoader().cancelDisplayTask(img);
    }
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_OkHttpWithVolley,
代码行数:12,
代码来源:ImageDetailActivity.java

示例6: FreshNewsAdapter

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
public FreshNewsAdapter(BaseActivity activity, LoadFinishCallBack<Object> loadFinisCallBack, LoadResultCallBack loadResultCallBack) {
    this.mActivity = activity;
    this.isLargeMode = SPHelper.getBoolean(SettingFragment.ENABLE_FRESH_BIG, true);
    this.mLoadFinisCallBack = loadFinisCallBack;
    this.mLoadResultCallBack = loadResultCallBack;
    mFreshNews = new ArrayList<>();

    int loadingResource = isLargeMode ? R.drawable.ic_loading_large : R.drawable.ic_loading_small;
    options = ImageLoadProxy.getOptions4PictureList(loadingResource);
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDanRxJava,
代码行数:11,
代码来源:FreshNewsAdapter.java

示例7: onCreate

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
public void onCreate() {
    StrictModeUtil.init();
    super.onCreate();
    mContext = this;

    refWatcher = LeakCanary.install(this);
    ImageLoadProxy.initImageLoader(this);
    initHttpClient();
    SPHelper.init(mContext);
    KLog.init(BuildConfig.DEBUG);
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDanRxJava,
代码行数:13,
代码来源:JDApplication.java

示例8: onCreate

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
public void onCreate() {
    StrictModeUtil.init();
    super.onCreate();
    refWatcher = LeakCanary.install(this);
    mContext = this;
    HttpClientProxy.init();
    ImageLoadProxy.initImageLoader(this);

    if (BuildConfig.DEBUG) {
        Logger.init().hideThreadInfo().setMethodCount(1).setLogLevel(LogLevel.FULL);
    }
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_AsyncHttpClient,
代码行数:14,
代码来源:JDApplication.java

示例9: FreshNewsAdapter

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
public FreshNewsAdapter(Activity activity, LoadFinishCallBack loadFinisCallBack, LoadResultCallBack loadResultCallBack, boolean isLargeMode) {
    this.mActivity = activity;
    this.isLargeMode = isLargeMode;
    this.mLoadFinisCallBack = loadFinisCallBack;
    this.mLoadResultCallBack = loadResultCallBack;
    requestHandles = new ArrayList<>();
    mFreshNews = new ArrayList<>();

    int loadingResource = isLargeMode ? R.drawable.ic_loading_large : R.drawable.ic_loading_small;
    options = ImageLoadProxy.getOptions4PictureList(loadingResource);
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_AsyncHttpClient,
代码行数:12,
代码来源:FreshNewsAdapter.java

示例10: onDestroy

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
public void onDestroy() {
    super.onDestroy();
    //清除内存缓存,避免由于内存缓存造成的图片显示不完整
    ImageLoadProxy.getImageLoader().clearMemoryCache();
    mAdapter.cancelAllRequest();
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_AsyncHttpClient,
代码行数:8,
代码来源:PictureFragment.java

示例11: onDestroy

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
public void onDestroy() {
    super.onDestroy();
    //清除内存缓存,避免由于内存缓存造成的图片显示不完整
    ImageLoadProxy.getImageLoader().clearMemoryCache();
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_OkHttpWithVolley,
代码行数:7,
代码来源:PictureFragment.java

示例12: onDestroy

点赞 2

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
@Override
public void onDestroy() {
    super.onDestroy();
    JDApplication.getRefWatcher(getActivity()).watch(this);
    ImageLoadProxy.getImageLoader().clearMemoryCache();
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDanRxJava,
代码行数:7,
代码来源:BaseFragment.java

示例13: setOnPauseListenerParams

点赞 1

import com.socks.jiandan.view.imageloader.ImageLoadProxy; //导入依赖的package包/类
/**
 * 如果需要显示图片,需要设置这几个参数,快速滑动时,暂停图片加载
 *
 * @param pauseOnScroll
 * @param pauseOnFling
 */
public void setOnPauseListenerParams(boolean pauseOnScroll, boolean pauseOnFling) {
    addOnScrollListener(new AutoLoadScrollListener(ImageLoadProxy.getImageLoader(), pauseOnScroll, pauseOnFling));
}
 

开发者ID:ZhaoKaiQiang,
项目名称:JianDan_OkHttpWithVolley,
代码行数:10,
代码来源:AutoLoadRecyclerView.java


版权声明:本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系管理员进行删除。
喜欢 (0)