Skip to content

Commit

Permalink
Merge pull request #4 from sakebook/release/0.1.0
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
sakebook authored May 21, 2017
2 parents 25a9aba + 48910e3 commit 175ef4c
Show file tree
Hide file tree
Showing 9 changed files with 48 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

## 0.1.0 (2017-05-21)
- Add GridDivider.

## 0.0.2 (2017-05-06)
- Fix group id.

Expand Down
48 changes: 44 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,17 @@ Multi divider in RecyclerView on Android.

[ ![Download](https://api.bintray.com/packages/sakebook/maven/MultiLineDivider/images/download.svg) ](https://bintray.com/sakebook/maven/MultiLineDivider/_latestVersion) [![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-MultiLineDivider-brightgreen.svg?style=flat)](https://android-arsenal.com/details/1/5735)

|Vertical|Horizontal|Inset|Dash|
|:---:|:---:|:---:|:---:|
|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/vertical.png)|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/horizontal.png)|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/inset.png)|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/dash.png)|
|Vertical|Horizontal|
|:---:|:---:|
|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/vertical.png)|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/horizontal.png)|

|Inset|Dash|
|:---:|:---:|
|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/inset.png)|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/dash.png)|

|Grid|FullBleed|
|:---:|:---:|
|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/grid.png)|![image](https://raw.githubusercontent.com/sakebook/MultiLineDivider/master/art/full_bleed.png)|

---

Expand All @@ -20,7 +28,7 @@ Multi divider in RecyclerView on Android.
Add dependencies

```gradle
compile 'com.github.sakebook:MultiLineDivider:0.2.0@aar'
compile 'com.github.sakebook:MultiLineDivider:0.1.0@aar'
// Use from Java
compile "org.jetbrains.kotlin:kotlin-stdlib:kotlin_version"
Expand Down Expand Up @@ -112,6 +120,38 @@ public Pair<Integer, Integer> getVerticalInset() {
```

### If you want to padding in grid

- Java

```java
public class YourViewHolder extends RecyclerView.ViewHolder implements GridDivider {

public YourViewHolder(View itemView) {
super(itemView);
}

@Override
public int getPadding() {
return itemView.getContext().getResources().getDimensionPixelSize(R.dimen.tiny_margin);
}

@Override
public boolean getFullBleed() {
return false;
}
}
```

- Kotlin

```kotlin
class YourViewHolder(view: View): RecyclerView.ViewHolder(view), GridDivider {
override val padding = view.context.resources.getDimensionPixelSize(R.dimen.grid_padding)
override val fullBleed = true
}
```

## ProGuard

If you are using ProGuard you might need to add the following option:
Expand Down
Binary file modified art/dash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/full_bleed.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added art/grid.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified art/horizontal.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified art/inset.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified art/vertical.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion multilinedivider/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ repositories {
}

group "com.github.sakebook"
version "0.0.2"
version "0.1.0"

archivesBaseName = "MultiLineDivider"

Expand Down

0 comments on commit 175ef4c

Please sign in to comment.