Skip to content

Commit

Permalink
Update REDMINE
Browse files Browse the repository at this point in the history
  • Loading branch information
zhpanvip committed Jan 27, 2021
1 parent 33d8f6e commit 5487ca8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 21 deletions.
19 changes: 6 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,6 @@ Various Indicator Styles and various Indicator Slide mode was supported now.It's
| COLOR| ![CIRCLE_COLOR](https://gitee.com/zhpanvip/images/raw/master/project/indicator/slide_circle_color.gif) | ![DASH_COLOR](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_dash_color.gif) | ![ROUND_COLOR](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_round_rect_color.gif) |
| SCALE| ![CIRCLE_SCALE](https://gitee.com/zhpanvip/images/raw/master/project/indicator/slide_circle_scale.gif) | ![DASH_SCALE](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_dash_scale.gif) | ![ROUND_SCALE](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_round_rect_scale.gif) |

### DrawableIndicator

| Bitmap Drawable| Vector Drawable|
|--|--|
| ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/bitmap_drawable_indicator.gif) | ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/vector_drawable_indicator.gif) |


## API

| Method | Description | Default |
Expand Down Expand Up @@ -153,11 +146,15 @@ Or you can do like the following code:
```

### 3.Custom IndicatorView Supported
### 2.Custom IndicatorView


#### DrawableIndicator

| Bitmap Drawable| Vector Drawable|
|--|--|
| ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/bitmap_drawable_indicator.gif) | ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/vector_drawable_indicator.gif) |

You can set bitmap drawable indicator and vector drawable indicator by DrawableIndicator,also you can resize the drawable easily.

##### Add IndicatorView in layout.xml
Expand Down Expand Up @@ -202,7 +199,7 @@ The example will implement an custom IndicatorView as the follow gif.

| Custom IndicatorView Style|
|--|
| ![NORMAL](https://github.com/zhpanvip/Resource/blob/master/image/banner/style_custum.gif) |
| ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_custum.gif) |

#### (1)Custom View and extends BaseIndicatorView

Expand Down Expand Up @@ -287,10 +284,6 @@ public class FigureIndicatorView extends BaseIndicatorView {
|--|--|
| ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/pay/pay_alipay.jpg) | ![SMOOTH](https://gitee.com/zhpanvip/images/raw/master/project/pay/pay_wechat.png) |

## More details

[《聊一聊ViewPagerIndicator重构的一些经验》](https://juejin.im/post/5dda0b6d518825731f569a8c)


License
-------
Expand Down
14 changes: 6 additions & 8 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@
| COLOR| ![CIRCLE_COLOR](https://gitee.com/zhpanvip/images/raw/master/project/indicator/slide_circle_color.gif) | ![DASH_COLOR](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_dash_color.gif) | ![ROUND_COLOR](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_round_rect_color.gif) |
| SCALE| ![CIRCLE_SCALE](https://gitee.com/zhpanvip/images/raw/master/project/indicator/slide_circle_scale.gif) | ![DASH_SCALE](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_dash_scale.gif) | ![ROUND_SCALE](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_round_rect_scale.gif) |

### DrawableIndicator

| Bitmap Drawable| Vector Drawable|
|--|--|
| ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/bitmap_drawable_indicator.gif) | ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/vector_drawable_indicator.gif) |


## API

Expand Down Expand Up @@ -155,11 +149,15 @@ latestVersion:[![latestVersion](https://jitpack.io/v/zhpanvip/viewpagerindicator
```


### 3.自定义Indicator样式
### 2.自定义Indicator样式


#### DrawableIndicator

| Bitmap Drawable| Vector Drawable|
|--|--|
| ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/bitmap_drawable_indicator.gif) | ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/vector_drawable_indicator.gif) |

DrawableIndicator是一个自定义的Indicator,位于Sample中,使用DrawableIndicator可以设置bitmap drawable或者vector drawable,可以自定义drawable的大小,具体使用步骤如下:

#### (1) Add IndicatorView in layout.xml
Expand Down Expand Up @@ -204,7 +202,7 @@ DrawableIndicator是一个自定义的Indicator,位于Sample中,使用Drawab

| Custom IndicatorView Style|
|--|
| ![NORMAL](https://github.com/zhpanvip/Resource/blob/master/image/banner/style_custum.gif) |
| ![NORMAL](https://gitee.com/zhpanvip/images/raw/master/project/indicator/style_custum.gif) |

#### (1)自定义View并继承BaseIndicatorView

Expand Down

0 comments on commit 5487ca8

Please sign in to comment.