Skip to content

Commit

Permalink
Renamed project
Browse files Browse the repository at this point in the history
  • Loading branch information
vontell committed Jun 29, 2016
1 parent 53f62f8 commit bc76371
Show file tree
Hide file tree
Showing 18 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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')
}
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand All @@ -33,15 +33,15 @@ 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,
unselectedImage);

// OPTIONAL: Attach more than one indicator container!
LinearLayout alternateContainer = (LinearLayout) findViewById(R.id.indicator_alt);
PagerIndicatorBinder.bind(this,
IndicatorBinder.bind(this,
viewPager,
alternateContainer,
selectedImage,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<resources>
<string name="app_name">PagerIndicatorBinderExample</string>
<string name="app_name">IndicatorBinder Example</string>
</resources>
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Original file line number Diff line number Diff line change
@@ -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.

<img src="demo.gif" height="500px" />
Expand All @@ -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.

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1 +1 @@
include ':app', ':pagerindicatorbinder'
include ':app', ':iindicatorbinder'

0 comments on commit bc76371

Please sign in to comment.