Skip to content

Commit

Permalink
Updated version and ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
yqritc committed Feb 15, 2016
1 parent d5d5fb5 commit 2c3c154
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ repositories {
}
dependencies {
compile 'com.yqritc:recyclerview-flexibledivider:1.2.8'
compile 'com.yqritc:recyclerview-flexibledivider:1.2.9'
}
```

Expand Down Expand Up @@ -100,13 +100,15 @@ Enables you to specify top and bottom margin of divider.
So, control your divider based on [group index](http://developer.android.com/intl/ja/reference/android/support/v7/widget/GridLayoutManager.SpanSizeLookup.html#getSpanGroupIndex(int, int)) instead of the position of items.

### Optional

The following method can be used if you want to draw divider line at the end of last item in RecyclerView.
- Builder.showLastDivider
Draw divider line at the end of last item in RecyclerView.
If you enable this, the range of position parameter of providers listed above is 0 to itemCount-1.
Otherwise, the range is 0 to itemCount-2.
```
FlexibleDividerDecoration.Builder.showLastDivider
```
Otherwise, the range is 0 to itemCount-2.

- Builder.positionInsideItem
Draw divider inside items.
If you want to follow [material design guideline](https://www.google.com/design/spec/components/dividers.html#dividers-specs), enable this feature.


### Note
- When neither of color, paint, drawable is set, default divider retrieved from android.R.attr.listDivider will be used.
Expand Down
4 changes: 2 additions & 2 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
VERSION_NAME=1.2.8
VERSION_CODE=12
VERSION_NAME=1.2.9
VERSION_CODE=13
GROUP=com.yqritc
ARTIFACT_ID=recyclerview-flexibledivider

Expand Down
2 changes: 1 addition & 1 deletion sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ android {

dependencies {
compile project(':library')
// compile 'com.yqritc:recyclerview-flexibledivider:1.2.8'
// compile 'com.yqritc:recyclerview-flexibledivider:1.2.9'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
}

0 comments on commit 2c3c154

Please sign in to comment.