本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}
示例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();
}
示例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();
}
}