From 7dbc062392066c2a4e0d16c62b53da25fbf1095f Mon Sep 17 00:00:00 2001 From: Trinea Date: Sat, 4 Jan 2014 14:53:58 +0800 Subject: [PATCH] delete code --- .../trinea/android/demo/ImageCacheDemo.java | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/cn/trinea/android/demo/ImageCacheDemo.java b/src/cn/trinea/android/demo/ImageCacheDemo.java index 9a5196b..f397b84 100644 --- a/src/cn/trinea/android/demo/ImageCacheDemo.java +++ b/src/cn/trinea/android/demo/ImageCacheDemo.java @@ -46,22 +46,22 @@ public void onCreate(Bundle savedInstanceState) { IMAGE_CACHE.initData(this, TAG_CACHE); IMAGE_CACHE.setContext(context); // intelligent compress image - IMAGE_CACHE.setCompressListener(new CompressListener() { - - @Override - public int getCompressSize(String imagePath) { - if (FileUtils.isFileExist(imagePath)) { - long fileSize = FileUtils.getFileSize(imagePath) / 1000; - /** - * if image bigger than 100k, compress to 1/(n + 1) width and 1/(n + 1) height, n is fileSize / 100k - **/ - if (fileSize > 100) { - return (int)(fileSize / 100) + 1; - } - } - return 1; - } - }); + // IMAGE_CACHE.setCompressListener(new CompressListener() { + // + // @Override + // public int getCompressSize(String imagePath) { + // if (FileUtils.isFileExist(imagePath)) { + // long fileSize = FileUtils.getFileSize(imagePath) / 1000; + // /** + // * if image bigger than 100k, compress to 1/(n + 1) width and 1/(n + 1) height, n is fileSize / 100k + // **/ + // if (fileSize > 100) { + // return (int)(fileSize / 100) + 1; + // } + // } + // return 1; + // } + // }); int count = 0, viewId = 0x7F24FFF0; int verticalSpacing, horizontalSpacing;