From 63e0ee439b0762a34fa8429769fb18226c01c998 Mon Sep 17 00:00:00 2001 From: Florian Barth Date: Mon, 24 Aug 2015 12:24:05 +0200 Subject: [PATCH] added nine old androids for sdk 10 compatibility --- CircleIndicator.iml | 2 +- circleindicator/build.gradle | 3 +- circleindicator/circleindicator.iml | 47 ++++++++++--------- .../circleindicator/CircleIndicator.java | 5 +- sample/build.gradle | 2 +- 5 files changed, 31 insertions(+), 28 deletions(-) diff --git a/CircleIndicator.iml b/CircleIndicator.iml index 9d675da..e1a3f17 100644 --- a/CircleIndicator.iml +++ b/CircleIndicator.iml @@ -1,5 +1,5 @@ - + diff --git a/circleindicator/build.gradle b/circleindicator/build.gradle index 8fbb6c3..bd6361a 100644 --- a/circleindicator/build.gradle +++ b/circleindicator/build.gradle @@ -7,7 +7,7 @@ android { buildToolsVersion '22.0.1' defaultConfig { - minSdkVersion 11 + minSdkVersion 10 targetSdkVersion 22 versionCode 115 versionName version @@ -23,6 +23,7 @@ android { dependencies { compile 'com.android.support:support-v4:22.2.0' + compile 'com.nineoldandroids:library:2.4.0' } diff --git a/circleindicator/circleindicator.iml b/circleindicator/circleindicator.iml index f891a45..38de450 100644 --- a/circleindicator/circleindicator.iml +++ b/circleindicator/circleindicator.iml @@ -1,22 +1,23 @@ - + - - + @@ -37,13 +38,7 @@ - - - - - - - + @@ -51,6 +46,13 @@ + + + + + + + @@ -58,13 +60,13 @@ - - - - - - - + + + + + + + @@ -86,12 +88,11 @@ - - + \ No newline at end of file diff --git a/circleindicator/src/main/java/me/relex/circleindicator/CircleIndicator.java b/circleindicator/src/main/java/me/relex/circleindicator/CircleIndicator.java index e465285..c275595 100644 --- a/circleindicator/src/main/java/me/relex/circleindicator/CircleIndicator.java +++ b/circleindicator/src/main/java/me/relex/circleindicator/CircleIndicator.java @@ -1,7 +1,5 @@ package me.relex.circleindicator; -import android.animation.Animator; -import android.animation.AnimatorInflater; import android.content.Context; import android.content.res.TypedArray; import android.support.annotation.AnimatorRes; @@ -13,6 +11,9 @@ import android.view.animation.Interpolator; import android.widget.LinearLayout; +import com.nineoldandroids.animation.Animator; +import com.nineoldandroids.animation.AnimatorInflater; + import static android.support.v4.view.ViewPager.OnPageChangeListener; public class CircleIndicator extends LinearLayout implements OnPageChangeListener { diff --git a/sample/build.gradle b/sample/build.gradle index 34c07c7..ca93ffc 100755 --- a/sample/build.gradle +++ b/sample/build.gradle @@ -7,7 +7,7 @@ android { defaultConfig { applicationId "me.relex.circleindicatorsample" - minSdkVersion 11 + minSdkVersion 10 targetSdkVersion 22 versionCode 1 versionName "1.0"