Skip to content

Commit

Permalink
注释掉load模块的错误代码
Browse files Browse the repository at this point in the history
  • Loading branch information
Zane96 committed Jun 15, 2016
1 parent b066803 commit 5719bac
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 168 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'com.android.application'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"
buildToolsVersion '24.0.0 rc4'

defaultConfig {
applicationId "com.example.zane.imageloader"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ public void getDataBack(Bitmap bitmap) {
ImageProviderBuilder builder = new ImageProviderBuilder()
.with(this)
.useCamera()
.setGetImageListener("uri", (uri) -> Toast.makeText(this, String.valueOf((Uri) uri), Toast.LENGTH_SHORT).show())
.useCrop(200, 200);
//.setGetImageListener("uri", (uri) -> Toast.makeText(this, String.valueOf((Uri) uri), Toast.LENGTH_SHORT).show())
.useCrop(200, 200)
//.setGetImageListener("bitmap", listener)
.setGetImageListener("bitmap", (bitmap) -> imageView.setImageBitmap((Bitmap)bitmap));
EasyImageFactory factory = new ProviderFactory(builder);
easyImage = factory.init();
button.setOnClickListener((v) -> easyImage.execute());
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,17 @@ public ImageLoadBuidler(){
* LruCache
* @return
*/
public ImageLoadBuidler useLruCache(){
this.isLruCache = true;
imageCache = new BitmapLruCache();

return this;
}

/**
* Lru+Disk
* @return
*/
// public ImageLoadBuidler useLruCache(){
// this.isLruCache = true;
// imageCache = new BitmapLruCache();
//
// return this;
// }
//
// /**
// * Lru+Disk
// * @return
// */
// public ImageLoadBuidler useDoubleCache(){
// this.isDoubleCache = true;
// imageCache = new BitmapDoubleCache();
Expand Down Expand Up @@ -92,21 +92,17 @@ public ImageLoadBuidler useCustomCache(ImageCache imageCache){
return this;
}

// public ImageLoadBuidler getBitmapBack(OnGetBitmapListener listener){

// /**
// * 网络图片默认是返回bitmap,就算是从内存中获得
// * @param listener
// * @return
// */
// public ImageLoadBuidler setGetImageListener(OnGetImageListener listener){
// this.listener = listener;
// return this;
// }

/**
* 网络图片默认是返回bitmap,就算是从内存中获得
* @param listener
* @return
*/
public ImageLoadBuidler setGetImageListener(OnGetImageListener listener){
this.listener = listener;
return this;
}

/**
*
* @param context
Expand Down

0 comments on commit 5719bac

Please sign in to comment.