diff --git a/README.md b/README.md
index faa067c..9033dfe 100644
--- a/README.md
+++ b/README.md
@@ -31,14 +31,17 @@ allprojects {
```
dependencies {
- compile 'com.github.hanhailong:GridPagerSnapHelper:0.0.3'
+ compile 'com.github.hanhailong:GridPagerSnapHelper:1.0.0'
}
```
## Jcenter(Recommend)
```
- compile 'com.hhl:gridpagersnaphelper:0.0.3'
+ compile 'com.hhl:gridpagersnaphelper:1.0.0'
+
+ // Optional , config indicator
+ compile 'com.hhl:recyclerviewindicator:1.0.0'
```
## Maven
@@ -47,7 +50,16 @@ dependencies {
com.hhl
gridpagersnaphelper
- 0.0.3
+ 1.0.0
+ pom
+
+
+// Optional , config indicator
+
+
+ com.hhl
+ recyclerviewindicator
+ 1.0.0
pom
```
@@ -136,6 +148,27 @@ Here,I have provided three transform order functions
You can impl your custom row funcitons by extends **AbsRowDataTransform**
+**Step4. (Optional) Config Indicator**
+```
+CirclePageIndicator indicator = (CirclePageIndicator) findViewById(R.id.first_page_indicator);
+indicator.setRecyclerView(firstRV);
+//Note: pageColumn must be config
+indicator.setPageColumn(column);
+
+indicator.setOnPageChangeListener(new OnPageChangeListener() {
+ @Override
+ public void onPageSelected(int position) {
+
+ }
+
+ @Override
+ public void onPageScrollStateChanged(int state) {
+
+ }
+});
+```
+
+
# Why use AbsRowDataTransform?
In general,horizontal direction GridLayoutManager layout like this:
@@ -149,10 +182,6 @@ But,We want is the following case :
so,We need to make a transformation of the data.Here,**AbsRowDataTransform** can meet your needs.
-# TODO
-
-1. add indicator function
-
# Author
hanhailong worked in 58同城,A fantastic website
diff --git a/app/build.gradle b/app/build.gradle
index 4f524f1..30e9131 100644
--- a/app/build.gradle
+++ b/app/build.gradle
@@ -30,14 +30,16 @@ dependencies {
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
- compile project(':gridpagersnaphelper')
+// compile project(':gridpagersnaphelper')
compile 'com.github.bumptech.glide:glide:4.0.0'
annotationProcessor 'com.github.bumptech.glide:compiler:4.0.0'
// compile 'com.github.hanhailong:GridPagerSnapHelper:0.0.2'
-// compile 'com.hhl:gridpagersnaphelper:0.0.3'
+ compile 'com.hhl:gridpagersnaphelper:1.0.0'
compile project(':recyclerviewindicator')
+
+// compile 'com.hhl:recyclerviewindicator:1.0.0'
}
diff --git a/gridpagersnaphelper/build.gradle b/gridpagersnaphelper/build.gradle
index 685c10c..036cde2 100644
--- a/gridpagersnaphelper/build.gradle
+++ b/gridpagersnaphelper/build.gradle
@@ -37,7 +37,7 @@ publish {
userOrg = 'hanhailong'
groupId = 'com.hhl'
artifactId = 'gridpagersnaphelper'
- publishVersion = '0.0.3'
+ publishVersion = '1.0.0'
desc = 'A powerful tools to impl grid paging layout by RecyclerView'
website = 'https://github.com/hanhailong/GridPagerSnapHelper'
}
diff --git a/recyclerviewindicator/build.gradle b/recyclerviewindicator/build.gradle
index 25f164f..adacf40 100644
--- a/recyclerviewindicator/build.gradle
+++ b/recyclerviewindicator/build.gradle
@@ -1,4 +1,5 @@
apply plugin: 'com.android.library'
+apply plugin: 'com.novoda.bintray-release'
android {
compileSdkVersion 25
@@ -31,3 +32,12 @@ dependencies {
compile 'com.android.support:recyclerview-v7:25.3.1'
}
+
+publish {
+ userOrg = 'hanhailong'
+ groupId = 'com.hhl'
+ artifactId = 'recyclerviewindicator'
+ publishVersion = '1.0.0'
+ desc = 'A indicator for gridpagersnaphelper'
+ website = 'https://github.com/hanhailong/GridPagerSnapHelper'
+}
\ No newline at end of file