diff --git a/.idea/misc.xml b/.idea/misc.xml index fd2068d..bec66fa 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -79,7 +79,7 @@ - + \ No newline at end of file diff --git a/PhotoPicker/src/main/java/me/iwf/photopicker/adapter/PhotoPagerAdapter.java b/PhotoPicker/src/main/java/me/iwf/photopicker/adapter/PhotoPagerAdapter.java index 2de448f..0dd98bf 100644 --- a/PhotoPicker/src/main/java/me/iwf/photopicker/adapter/PhotoPagerAdapter.java +++ b/PhotoPicker/src/main/java/me/iwf/photopicker/adapter/PhotoPagerAdapter.java @@ -9,6 +9,7 @@ import android.view.ViewGroup; import android.widget.ImageView; import com.bumptech.glide.Glide; +import com.bumptech.glide.load.engine.DiskCacheStrategy; import java.io.File; import java.util.ArrayList; import java.util.List; @@ -46,7 +47,6 @@ public PhotoPagerAdapter(Context mContext, List paths) { } Glide.with(mContext) .load(uri) - .override(800, 800) .placeholder(R.drawable.ic_photo_black_48dp) .error(R.drawable.ic_broken_image_black_48dp) .into(imageView); diff --git a/PhotoPicker/src/main/res/layout/item_pager.xml b/PhotoPicker/src/main/res/layout/item_pager.xml index e15cede..c77f5fc 100644 --- a/PhotoPicker/src/main/res/layout/item_pager.xml +++ b/PhotoPicker/src/main/res/layout/item_pager.xml @@ -1,16 +1,17 @@ - - \ No newline at end of file + \ No newline at end of file diff --git a/photopickerdemo/src/main/res/layout/activity_main.xml b/photopickerdemo/src/main/res/layout/activity_main.xml index 487dfe4..c9de654 100644 --- a/photopickerdemo/src/main/res/layout/activity_main.xml +++ b/photopickerdemo/src/main/res/layout/activity_main.xml @@ -46,7 +46,7 @@