jjzjj

photoToLoad

全部标签

android - 如何根据手机屏幕大小增加位图图像大小?

我正在使用一个库从url获取图像并将其作为位图图像保存到缓存中。但是当我检索该图像时,它非常小。如何根据手机屏幕增加该位图图像的高度和宽度?这是创建位图的类。publicclassImageLoader{intwidth,height;MemoryCachememoryCache=newMemoryCache();FileCachefileCache;privateMapimageViews=Collections.synchronizedMap(newWeakHashMap());ExecutorServiceexecutorService;Handlerhandler=newHan

Android java.lang.OutOfMemoryError?

04-2508:19:10.1112431-2603/com.example.francesco.guidedautorewithtabsE/art﹕ThrowingOutOfMemoryError"Failedtoallocatea4194316byteallocationwith1983651freebytesand1937KBuntilOOM"04-2508:19:10.1142431-2603/com.example.francesco.guidedautorewithtabsE/AndroidRuntime﹕FATALEXCEPTION:GLThread285Process:

Android java.lang.OutOfMemoryError?

04-2508:19:10.1112431-2603/com.example.francesco.guidedautorewithtabsE/art﹕ThrowingOutOfMemoryError"Failedtoallocatea4194316byteallocationwith1983651freebytesand1937KBuntilOOM"04-2508:19:10.1142431-2603/com.example.francesco.guidedautorewithtabsE/AndroidRuntime﹕FATALEXCEPTION:GLThread285Process: