Skip to content

Commit

Permalink
// 单图的宽高设定更改
Browse files Browse the repository at this point in the history
  • Loading branch information
razerdp committed Dec 8, 2016
1 parent ba21ff3 commit 747f1e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
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.2.2'
classpath 'com.android.tools.build:gradle:2.2.3'
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.4.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import android.content.Context;
import android.support.annotation.NonNull;
import android.util.AttributeSet;
import android.util.Log;
import android.util.SparseArray;
import android.view.View;
import android.view.ViewGroup;
Expand Down Expand Up @@ -214,7 +215,9 @@ private ImageView obtainView(int position) {
protected LayoutParams generateDefaultMultiLayoutParams(boolean isSingle) {
LayoutParams p;
if (isSingle) {
p = new PhotoContents.LayoutParams(ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.WRAP_CONTENT);
// p = new PhotoContents.LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT);
p = new PhotoContents.LayoutParams(maxSingleWidth, maxSingleHeight);

} else {
p = new PhotoContents.LayoutParams(multiChildSize, multiChildSize);
}
Expand Down

0 comments on commit 747f1e0

Please sign in to comment.