Skip to content

Commit

Permalink
1.修复 图片预览的时候 图片被拉伸的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin088 committed Jan 29, 2018
1 parent a642bf6 commit daea132
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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 "25.0.2"
buildToolsVersion "25.0.3"

defaultConfig {
applicationId "com.luck.pictureselector"
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.1.3'
classpath 'com.android.tools.build:gradle:2.3.0'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
2 changes: 1 addition & 1 deletion picture_library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ android {
buildToolsVersion "25.0.3"

defaultConfig {
minSdkVersion 10
minSdkVersion 14
targetSdkVersion 23
versionCode 1
versionName "1.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -212,9 +212,9 @@ public void onResourceReady(Bitmap resource, Transition<? super Bitmap> transiti
displayLongPic(resource, longImg);
} else {
// 适配有些手机 图片不能充满全屏
if (resource.getWidth() > 480 && resource.getHeight() > 1080) {
imageView.setScaleType(ImageView.ScaleType.FIT_XY);
}
// if (resource.getWidth() > 480 && resource.getHeight() > 1080) {
// imageView.setScaleType(ImageView.ScaleType.FIT_XY);
// }
imageView.setImageBitmap(resource);
}
}
Expand Down

0 comments on commit daea132

Please sign in to comment.