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


Java L.writeDebugLogs方法代码示例

本文整理汇总了Java中com.nostra13.universalimageloader.utils.L.writeDebugLogs方法的典型用法代码示例。如果您正苦于以下问题:Java L.writeDebugLogs方法的具体用法?Java L.writeDebugLogs怎么用?Java L.writeDebugLogs使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在com.nostra13.universalimageloader.utils.L的用法示例。


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

示例1: ImageLoaderConfiguration

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
private ImageLoaderConfiguration(final Builder builder) {
	resources = builder.context.getResources();
	maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
	maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
	maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
	maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
	processorForDiskCache = builder.processorForDiskCache;
	taskExecutor = builder.taskExecutor;
	taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
	threadPoolSize = builder.threadPoolSize;
	threadPriority = builder.threadPriority;
	tasksProcessingType = builder.tasksProcessingType;
	diskCache = builder.diskCache;
	memoryCache = builder.memoryCache;
	defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
	downloader = builder.downloader;
	decoder = builder.decoder;

	customExecutor = builder.customExecutor;
	customExecutorForCachedImages = builder.customExecutorForCachedImages;

	networkDeniedDownloader = new NetworkDeniedImageDownloader(downloader);
	slowNetworkDownloader = new SlowNetworkImageDownloader(downloader);

	L.writeDebugLogs(builder.writeLogs);
}
 
开发者ID:weiwenqiang,项目名称:GitHub,代码行数:27,代码来源:ImageLoaderConfiguration.java

示例2: ImageLoaderConfiguration

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
private ImageLoaderConfiguration(Builder builder) {
    this.resources = builder.context.getResources();
    this.maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
    this.maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
    this.maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
    this.maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
    this.processorForDiskCache = builder.processorForDiskCache;
    this.taskExecutor = builder.taskExecutor;
    this.taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
    this.threadPoolSize = builder.threadPoolSize;
    this.threadPriority = builder.threadPriority;
    this.tasksProcessingType = builder.tasksProcessingType;
    this.diskCache = builder.diskCache;
    this.memoryCache = builder.memoryCache;
    this.defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
    this.downloader = builder.downloader;
    this.decoder = builder.decoder;
    this.thumbnailUtils = builder.thumbnailUtils;
    this.customExecutor = builder.customExecutor;
    this.customExecutorForCachedImages = builder.customExecutorForCachedImages;
    this.networkDeniedDownloader = new NetworkDeniedImageDownloader(this.downloader);
    this.slowNetworkDownloader = new SlowNetworkImageDownloader(this.downloader);
    L.writeDebugLogs(builder.writeLogs);
}
 
开发者ID:JackChan1999,项目名称:letv,代码行数:25,代码来源:ImageLoaderConfiguration.java

示例3: onCreate

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    mContext = getApplicationContext();
    mPlayBackStarter = new PlayBackStarter(mContext);

    // Obtain the FirebaseAnalytics instance.
    mFirebaseAnalytics = FirebaseAnalytics.getInstance(this);

    initImageLoader();

    AnalyticsTrackers.initialize(this);
    AnalyticsTrackers.getInstance().get(AnalyticsTrackers.Target.APP);

    /**
     *disable UIL Logs
     */
    L.writeDebugLogs(false);
}
 
开发者ID:reyanshmishra,项目名称:Rey-MusicPlayer,代码行数:20,代码来源:Common.java

示例4: ImageLoaderConfiguration

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
private ImageLoaderConfiguration(Builder builder) {
    this.resources = builder.context.getResources();
    this.maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
    this.maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
    this.maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
    this.maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
    this.processorForDiskCache = builder.processorForDiskCache;
    this.taskExecutor = builder.taskExecutor;
    this.taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
    this.threadPoolSize = builder.threadPoolSize;
    this.threadPriority = builder.threadPriority;
    this.tasksProcessingType = builder.tasksProcessingType;
    this.diskCache = builder.diskCache;
    this.memoryCache = builder.memoryCache;
    this.defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
    this.downloader = builder.downloader;
    this.decoder = builder.decoder;
    this.customExecutor = builder.customExecutor;
    this.customExecutorForCachedImages = builder.customExecutorForCachedImages;
    this.networkDeniedDownloader = new NetworkDeniedImageDownloader(this.downloader);
    this.slowNetworkDownloader = new SlowNetworkImageDownloader(this.downloader);
    L.writeDebugLogs(builder.writeLogs);
}
 
开发者ID:JackChan1999,项目名称:boohee_v5.6,代码行数:24,代码来源:ImageLoaderConfiguration.java

示例5: ImageLoaderConfiguration

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
private ImageLoaderConfiguration(final Builder builder) {
    resources = builder.context.getResources();
    maxImageWidthForMemoryCache = builder.maxImageWidthForMemoryCache;
    maxImageHeightForMemoryCache = builder.maxImageHeightForMemoryCache;
    maxImageWidthForDiskCache = builder.maxImageWidthForDiskCache;
    maxImageHeightForDiskCache = builder.maxImageHeightForDiskCache;
    processorForDiskCache = builder.processorForDiskCache;
    taskExecutor = builder.taskExecutor;
    taskExecutorForCachedImages = builder.taskExecutorForCachedImages;
    threadPoolSize = builder.threadPoolSize;
    threadPriority = builder.threadPriority;
    tasksProcessingType = builder.tasksProcessingType;
    diskCache = builder.diskCache;
    memoryCache = builder.memoryCache;
    memoryFilePathCache = builder.memoryFilePathCache;
    defaultDisplayImageOptions = builder.defaultDisplayImageOptions;
    downloader = builder.downloader;
    decoder = builder.decoder;

    customExecutor = builder.customExecutor;
    customExecutorForCachedImages = builder.customExecutorForCachedImages;

    networkDeniedDownloader = new NetworkDeniedImageDownloader(downloader);
    slowNetworkDownloader = new SlowNetworkImageDownloader(downloader);

    L.writeDebugLogs(builder.writeLogs);
}
 
开发者ID:Spencer231,项目名称:GifImageLoader,代码行数:28,代码来源:ImageLoaderConfiguration.java

示例6: initImageLoader

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
private void initImageLoader() {

        ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(this)
                .defaultDisplayImageOptions(options)
                .build();

        ImageLoader.getInstance().init(config);

        L.writeDebugLogs(false);
        L.disableLogging();
        L.writeLogs(false);
    }
 
开发者ID:reyanshmishra,项目名称:Rey-MusicPlayer,代码行数:13,代码来源:Common.java

示例7: getImageLoaderConfiguration

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
public static ImageLoaderConfiguration getImageLoaderConfiguration(@NonNull Context context) {
    L.writeLogs(false);
    L.writeDebugLogs(false);
    return new ImageLoaderConfiguration.Builder(context)
            .threadPriority(Thread.NORM_PRIORITY - 2)
            .threadPoolSize(4)
            .tasksProcessingOrder(QueueProcessingType.FIFO)
            .diskCacheSize(256 * FileHelper.MB)
            .diskCache(new UnlimitedDiskCache(new File(
                    context.getCacheDir().toString() + "/uil-images")))
            .memoryCacheSize(8 * FileHelper.MB)
            .build();
}
 
开发者ID:danimahardhika,项目名称:wallpaperboard,代码行数:14,代码来源:ImageConfig.java

示例8: onCreate

import com.nostra13.universalimageloader.utils.L; //导入方法依赖的package包/类
@Override
public void onCreate() {
    super.onCreate();
    mInstance = this;

    final ACRAConfiguration config;
    try {
        Properties configProps = new Properties();
        InputStream in = getAssets().open("acra.properties");
        configProps.load(in);
        in.close();
        config = new ConfigurationBuilder(this)
                .setFormUri(configProps.getProperty("FORM-URI"))
                .setReportType(HttpSender.Type.JSON)
                .setHttpMethod(HttpSender.Method.PUT)
                .setFormUriBasicAuthLogin(configProps.getProperty("USERNAME"))
                .setFormUriBasicAuthPassword(configProps.getProperty("PASSWORD"))
                .build();
        ACRA.init(this, config);
    } catch (ACRAConfigurationException | IOException e) {
        e.printStackTrace();
    }

    ImageLoaderConfiguration localImageLoaderConfiguration = new ImageLoaderConfiguration.Builder(this).imageDownloader(new BaseImageDownloader(this) {
        PreferencesUtility prefs = PreferencesUtility.getInstance(TimberApp.this);

        @Override
        protected InputStream getStreamFromNetwork(String imageUri, Object extra) throws IOException {
            if (prefs.loadArtistImages()) return super.getStreamFromNetwork(imageUri, extra);
            throw new IOException();
        }
    }).build();

    ImageLoader.getInstance().init(localImageLoaderConfiguration);
    L.writeLogs(false);
    L.disableLogging();
    L.writeDebugLogs(false);
    Nammu.init(this);

    if (!ATE.config(this, "light_theme").isConfigured()) {
        ATE.config(this, "light_theme")
                .activityTheme(R.style.AppThemeLight)
                .primaryColorRes(R.color.colorPrimaryLightDefault)
                .accentColorRes(R.color.colorAccentLightDefault)
                .coloredNavigationBar(false)
                .usingMaterialDialogs(true)
                .commit();
    }
    if (!ATE.config(this, "dark_theme").isConfigured()) {
        ATE.config(this, "dark_theme")
                .activityTheme(R.style.AppThemeDark)
                .primaryColorRes(R.color.colorPrimaryDarkDefault)
                .accentColorRes(R.color.colorAccentDarkDefault)
                .coloredNavigationBar(false)
                .usingMaterialDialogs(true)
                .commit();
    }
    if (!ATE.config(this, "light_theme_notoolbar").isConfigured()) {
        ATE.config(this, "light_theme_notoolbar")
                .activityTheme(R.style.AppThemeLight)
                .coloredActionBar(false)
                .primaryColorRes(R.color.colorPrimaryLightDefault)
                .accentColorRes(R.color.colorAccentLightDefault)
                .coloredNavigationBar(false)
                .usingMaterialDialogs(true)
                .commit();
    }
    if (!ATE.config(this, "dark_theme_notoolbar").isConfigured()) {
        ATE.config(this, "dark_theme_notoolbar")
                .activityTheme(R.style.AppThemeDark)
                .coloredActionBar(false)
                .primaryColorRes(R.color.colorPrimaryDarkDefault)
                .accentColorRes(R.color.colorAccentDarkDefault)
                .coloredNavigationBar(true)
                .usingMaterialDialogs(true)
                .commit();
    }

}
 
开发者ID:Vinetos,项目名称:Hello-Music-droid,代码行数:80,代码来源:TimberApp.java


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