diff --git a/build.gradle b/build.gradle index d98bca1..a3c2a9c 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:0.6.3' + classpath 'com.android.tools.build:gradle:0.7.+' } } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index fb29364..1f36edb 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=http\://services.gradle.org/distributions/gradle-1.8-bin.zip +distributionUrl=http\://services.gradle.org/distributions/gradle-1.9-bin.zip diff --git a/library/build.gradle b/library/build.gradle index 38dc82e..39232fa 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -3,7 +3,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:0.6.3' + classpath 'com.android.tools.build:gradle:0.7.+' } } apply plugin: 'android-library' diff --git a/library/src/main/java/com/etsy/android/grid/StaggeredGridView.java b/library/src/main/java/com/etsy/android/grid/StaggeredGridView.java index 000826b..81d22ca 100644 --- a/library/src/main/java/com/etsy/android/grid/StaggeredGridView.java +++ b/library/src/main/java/com/etsy/android/grid/StaggeredGridView.java @@ -16,8 +16,6 @@ package com.etsy.android.grid; -import java.util.Arrays; - import android.content.Context; import android.content.res.TypedArray; import android.os.Parcel; @@ -28,6 +26,8 @@ import android.view.View; import android.view.ViewGroup; +import java.util.Arrays; + /** * A staggered grid view which supports multiple columns with rows of varying sizes. *
@@ -264,7 +264,7 @@ protected void onMeasureChild(final View child, final LayoutParams layoutParams) childHeightSpec = MeasureSpec.makeMeasureSpec(layoutParams.height, MeasureSpec.EXACTLY); } else { - childHeightSpec = MeasureSpec.makeMeasureSpec(LayoutParams.WRAP_CONTENT, MeasureSpec.EXACTLY); + childHeightSpec = MeasureSpec.makeMeasureSpec(LayoutParams.WRAP_CONTENT, MeasureSpec.UNSPECIFIED); } child.measure(childWidthSpec, childHeightSpec); } diff --git a/sample/build.gradle b/sample/build.gradle index d4ecd82..3a3ff93 100644 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -3,7 +3,7 @@ buildscript { mavenCentral() } dependencies { - classpath 'com.android.tools.build:gradle:0.6.3' + classpath 'com.android.tools.build:gradle:0.7.+' } } apply plugin: 'android'