Skip to content

Commit

Permalink
解决长图问题
Browse files Browse the repository at this point in the history
  • Loading branch information
HuanTanSheng committed Jul 24, 2019
1 parent 2b3aa9e commit a23e9a7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ targetSdkVersion 29  
QQ交流群:[288600953](https://jq.qq.com/?_wv=1027&k=5QGgCDe)
[demo下载](https://raw.githubusercontent.com/HuanTanSheng/EasyPhotos/master/demo/release/demo-release.apk)

## 关于EasyPhotos的SDK及相关版本公示
## 关于EasyPhotos的SDK及相关版本公示(support版本)
compileSdkVersion 28
minSdkVersion 15
targetSdkVersion 28  
Expand All @@ -83,7 +83,7 @@ allprojects {
```gradle
dependencies {
implementation 'com.github.HuanTanSheng:EasyPhotos:2.4.8' //支持androidx
implementation 'com.github.HuanTanSheng:EasyPhotos:2.4.9' //支持androidx
//implementation 'com.github.HuanTanSheng:EasyPhotos:2.4.5' //还没有升级到androidx的同学可以用这个版本
 
Expand All @@ -95,13 +95,13 @@ dependencies {



**如果你的 `android studio` 版本不同于3.3.2正式版,有可能会打不开我的Demo,只需要修改Demo里面 `build.gradle(project)` 文件中的:**    
**如果你的 `android studio` 版本低于3.4.2版,有可能会打不开我的Demo,只需要修改Demo里面 `build.gradle(project)` 文件中的:**    

```gradle
dependencies {
       classpath 'com.android.tools.build:gradle:3.3.2'
//把3.3.2改成你对应的版本即可,如果不清楚对应版本可以看看你其他正常项目的这里是怎么写的  
       classpath 'com.android.tools.build:gradle:3.4.2'
//把3.4.2改成你对应的版本即可,如果不清楚对应版本可以看看你其他正常项目的这里是怎么写的  
}
```
Expand Down Expand Up @@ -154,7 +154,7 @@ QQ交流群:[288600953](https://jq.qq.com/?_wv=1027&k=5QGgCDe)

## 更新日志

**2.4.8**
**2.4.9**
- 优化:修复预览页预览大图片和长图片时清晰度模糊问题

**2.4.7:**
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ buildscript {
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.2'
classpath 'com.android.tools.build:gradle:3.4.2'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.0'

}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ public void onBindViewHolder(@NonNull final PreviewPhotosViewHolder holder, int
holder.ivLongPhoto.setVisibility(View.GONE);

if (type.contains(Type.VIDEO)) {
holder.ivLongPhoto.setVisibility(View.VISIBLE);
holder.ivLongPhoto.setImage(ImageSource.uri(path));
holder.ivGifPhoto.setVisibility(View.VISIBLE);
Setting.imageEngine.loadPhoto(holder.ivGifPhoto.getContext(), path, holder.ivGifPhoto);
holder.ivPlay.setVisibility(View.VISIBLE);
holder.ivPlay.setOnClickListener(new View.OnClickListener() {
@Override
Expand Down
4 changes: 2 additions & 2 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Wed Apr 10 10:08:40 CST 2019
#Wed Jul 24 15:15:22 CST 2019
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip

0 comments on commit a23e9a7

Please sign in to comment.