From bc763714cee048844c8b1e9c218f825132950102 Mon Sep 17 00:00:00 2001 From: vontell Date: Wed, 29 Jun 2016 19:49:16 -0400 Subject: [PATCH] Renamed project --- .idea/.name | 2 +- .idea/gradle.xml | 4 ++-- .idea/misc.xml | 2 +- .idea/modules.xml | 3 ++- app/build.gradle | 2 +- .../avontell/pagerindicatorbinderexample/MainActivity.java | 6 +++--- app/src/main/res/values/strings.xml | 2 +- {pagerindicatorbinder => iindicatorbinder}/.gitignore | 0 {pagerindicatorbinder => iindicatorbinder}/build.gradle | 0 .../proguard-rules.pro | 0 .../com/avontell/pagerindicatorbinder/ApplicationTest.java | 0 .../src/main/AndroidManifest.xml | 0 .../com/avontell/pagerindicatorbinder/ImageAdapter.java | 1 - .../com/avontell/pagerindicatorbinder/IndicatorBinder.java | 2 +- .../src/main/res/values/strings.xml | 0 .../com/avontell/pagerindicatorbinder/ExampleUnitTest.java | 0 readme.md | 6 +++--- settings.gradle | 2 +- 18 files changed, 16 insertions(+), 16 deletions(-) rename {pagerindicatorbinder => iindicatorbinder}/.gitignore (100%) rename {pagerindicatorbinder => iindicatorbinder}/build.gradle (100%) rename {pagerindicatorbinder => iindicatorbinder}/proguard-rules.pro (100%) rename {pagerindicatorbinder => iindicatorbinder}/src/androidTest/java/com/avontell/pagerindicatorbinder/ApplicationTest.java (100%) rename {pagerindicatorbinder => iindicatorbinder}/src/main/AndroidManifest.xml (100%) rename {pagerindicatorbinder => iindicatorbinder}/src/main/java/com/avontell/pagerindicatorbinder/ImageAdapter.java (97%) rename pagerindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/PagerIndicatorBinder.java => iindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/IndicatorBinder.java (98%) rename {pagerindicatorbinder => iindicatorbinder}/src/main/res/values/strings.xml (100%) rename {pagerindicatorbinder => iindicatorbinder}/src/test/java/com/avontell/pagerindicatorbinder/ExampleUnitTest.java (100%) diff --git a/.idea/.name b/.idea/.name index 5cf2d5b..d256b34 100644 --- a/.idea/.name +++ b/.idea/.name @@ -1 +1 @@ -PagerIndicatorBinderExample \ No newline at end of file +IndicatorBinderExample \ No newline at end of file diff --git a/.idea/gradle.xml b/.idea/gradle.xml index 26435e9..1cdfc84 100644 --- a/.idea/gradle.xml +++ b/.idea/gradle.xml @@ -10,14 +10,14 @@ diff --git a/.idea/misc.xml b/.idea/misc.xml index 5d19981..fbb6828 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -37,7 +37,7 @@ - + diff --git a/.idea/modules.xml b/.idea/modules.xml index 7a5e082..343e878 100644 --- a/.idea/modules.xml +++ b/.idea/modules.xml @@ -4,7 +4,8 @@ - + + \ No newline at end of file diff --git a/app/build.gradle b/app/build.gradle index b3a02f0..3fe0fdb 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -23,5 +23,5 @@ dependencies { compile fileTree(dir: 'libs', include: ['*.jar']) testCompile 'junit:junit:4.12' compile 'com.android.support:appcompat-v7:24.0.0' - compile project(path: ':pagerindicatorbinder') + compile project(path: ':iindicatorbinder') } diff --git a/app/src/main/java/com/avontell/pagerindicatorbinderexample/MainActivity.java b/app/src/main/java/com/avontell/pagerindicatorbinderexample/MainActivity.java index c6bac56..ed39803 100644 --- a/app/src/main/java/com/avontell/pagerindicatorbinderexample/MainActivity.java +++ b/app/src/main/java/com/avontell/pagerindicatorbinderexample/MainActivity.java @@ -6,7 +6,7 @@ import android.widget.LinearLayout; import com.avontell.pagerindicatorbinder.ImageAdapter; -import com.avontell.pagerindicatorbinder.PagerIndicatorBinder; +import com.avontell.pagerindicatorbinder.IndicatorBinder; public class MainActivity extends AppCompatActivity { @@ -33,7 +33,7 @@ protected void onCreate(Bundle savedInstanceState) { int unselectedImage = R.drawable.indicator_unselected; // Bind the view pager to the indicatorContainer - PagerIndicatorBinder.bind(this, + IndicatorBinder.bind(this, viewPager, indicatorContainer, selectedImage, @@ -41,7 +41,7 @@ protected void onCreate(Bundle savedInstanceState) { // OPTIONAL: Attach more than one indicator container! LinearLayout alternateContainer = (LinearLayout) findViewById(R.id.indicator_alt); - PagerIndicatorBinder.bind(this, + IndicatorBinder.bind(this, viewPager, alternateContainer, selectedImage, diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index edb70d0..793622e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1,3 +1,3 @@ - PagerIndicatorBinderExample + IndicatorBinder Example diff --git a/pagerindicatorbinder/.gitignore b/iindicatorbinder/.gitignore similarity index 100% rename from pagerindicatorbinder/.gitignore rename to iindicatorbinder/.gitignore diff --git a/pagerindicatorbinder/build.gradle b/iindicatorbinder/build.gradle similarity index 100% rename from pagerindicatorbinder/build.gradle rename to iindicatorbinder/build.gradle diff --git a/pagerindicatorbinder/proguard-rules.pro b/iindicatorbinder/proguard-rules.pro similarity index 100% rename from pagerindicatorbinder/proguard-rules.pro rename to iindicatorbinder/proguard-rules.pro diff --git a/pagerindicatorbinder/src/androidTest/java/com/avontell/pagerindicatorbinder/ApplicationTest.java b/iindicatorbinder/src/androidTest/java/com/avontell/pagerindicatorbinder/ApplicationTest.java similarity index 100% rename from pagerindicatorbinder/src/androidTest/java/com/avontell/pagerindicatorbinder/ApplicationTest.java rename to iindicatorbinder/src/androidTest/java/com/avontell/pagerindicatorbinder/ApplicationTest.java diff --git a/pagerindicatorbinder/src/main/AndroidManifest.xml b/iindicatorbinder/src/main/AndroidManifest.xml similarity index 100% rename from pagerindicatorbinder/src/main/AndroidManifest.xml rename to iindicatorbinder/src/main/AndroidManifest.xml diff --git a/pagerindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/ImageAdapter.java b/iindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/ImageAdapter.java similarity index 97% rename from pagerindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/ImageAdapter.java rename to iindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/ImageAdapter.java index 48323f5..b50bb8b 100644 --- a/pagerindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/ImageAdapter.java +++ b/iindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/ImageAdapter.java @@ -1,7 +1,6 @@ package com.avontell.pagerindicatorbinder; import android.content.Context; -import android.graphics.drawable.Drawable; import android.support.v4.view.PagerAdapter; import android.view.View; import android.view.ViewGroup; diff --git a/pagerindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/PagerIndicatorBinder.java b/iindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/IndicatorBinder.java similarity index 98% rename from pagerindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/PagerIndicatorBinder.java rename to iindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/IndicatorBinder.java index 2ef12d4..bdb1035 100644 --- a/pagerindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/PagerIndicatorBinder.java +++ b/iindicatorbinder/src/main/java/com/avontell/pagerindicatorbinder/IndicatorBinder.java @@ -15,7 +15,7 @@ * @author Aaron Vontell * @version 0.1 */ -public class PagerIndicatorBinder { +public class IndicatorBinder { /** * Binds the viewPager to indicatorContainer, such that indicatorContainer has a list of diff --git a/pagerindicatorbinder/src/main/res/values/strings.xml b/iindicatorbinder/src/main/res/values/strings.xml similarity index 100% rename from pagerindicatorbinder/src/main/res/values/strings.xml rename to iindicatorbinder/src/main/res/values/strings.xml diff --git a/pagerindicatorbinder/src/test/java/com/avontell/pagerindicatorbinder/ExampleUnitTest.java b/iindicatorbinder/src/test/java/com/avontell/pagerindicatorbinder/ExampleUnitTest.java similarity index 100% rename from pagerindicatorbinder/src/test/java/com/avontell/pagerindicatorbinder/ExampleUnitTest.java rename to iindicatorbinder/src/test/java/com/avontell/pagerindicatorbinder/ExampleUnitTest.java diff --git a/readme.md b/readme.md index 02f4571..2dcff1b 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ -# PagerIndicatorBinder +# IndicatorBinder -PagerIndicatorBinder is a library that provides the ability to attach indicators to ViewPagers, +IndicatorBinder is a library that provides the ability to attach indicators to ViewPagers, so that the user may see their current position within the ViewPager. @@ -24,7 +24,7 @@ To create the indicators for a ViewPager, simply define in your layout a ViewPag based container that will hold your indicators. Then use the following lines of code to connect the ViewPager to the container: -`PagerIndicatorBinder.bind(viewPager, viewGroup, R.drawable.selectedRes, R.drawable.unselectedRes);` +`IndicatorBinder.bind(context, viewPager, viewGroup, R.drawable.selectedRes, R.drawable.unselectedRes);` This will populate the viewGroup with indicators, and presto! You have indicators for your ViewPager. diff --git a/settings.gradle b/settings.gradle index 941f52e..5c02770 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1 @@ -include ':app', ':pagerindicatorbinder' +include ':app', ':iindicatorbinder'