Skip to content

Commit

Permalink
readme updates for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
gungoren committed Dec 9, 2018
1 parent 06cdd0d commit b339bbc
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,9 @@ Motivated by layout in [Words Of Wonders](https://play.google.com/store/apps/det
app:dividerColor="@color/divider_color"
android:layout_below="@id/desc"
app:progress="0.3"
app:direction="leftToRight"
app:dividerWidth="2dp"/>
app:direction="bottomToTop"
app:dividerWidth="2dp"
app:touchEnabled="true"/>
```

```java
Expand All @@ -42,21 +43,23 @@ progressableImageView.setDividerWidthAsDp(dp); //use this if you want to change
progressableImageView.setDividerWidthAsPx(px); //use this if you want to change divider width. When it set to zero it will be invisible
progressableImageView.setDividerColor(color); //use this for set a new color divider color.
progressableImageView.setDirection(ProgressDirection.bottom_to_top); // use this if you wnat to change direction of progress available values [left_to_right, left_to_right, right_to_left, top_to_bottom, bottom_to_top]
progressableImageView.setTouchEnabled(boolean) // enable progress change with touch event
```

## Attribute
```app:progress``` value is between 0 and 1 float value. 1 = fullly bright. 0 = fully gray.
```app:dividerColor``` value is color which type is color.
```app:dividerWidth``` value is divider width which type is dimen.
```app:direction``` value is for progress direction which type is enum and values [leftToRight,rightToLeft,topToBottom,bottomToTop].
```app:touchEnabled``` value is for progress change by touch event which type is boolean.

```gradle
maven { url 'https://jitpack.io' }
```

```gradle
dependencies {
compile 'com.github.gungoren:ProgressableImageView:1.0.1'
compile 'com.github.gungoren:ProgressableImageView:1.0.2'
}
```

Expand Down

0 comments on commit b339bbc

Please sign in to comment.