Skip to content

Commit

Permalink
1.Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ckrgithub committed Apr 5, 2018
1 parent b24c5fa commit 7b97298
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
13 changes: 11 additions & 2 deletions README-ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ PageRecyclerView实现翻页功能及无限轮播。
### 添加依赖:
```
dependencies {
implementation 'ckrjfrog.Page:PageView:1.1.2'//gradle plugin 3.0(包含)以上使用
//compile 'ckrjfrog.Page:PageView:1.1.2'//gradle plugin 3.0一下使用
implementation 'ckrjfrog.Page:PageView:1.1.3'//gradle plugin 3.0(包含)以上使用
//compile 'ckrjfrog.Page:PageView:1.1.3'//gradle plugin 3.0一下使用
}
```

Expand All @@ -36,6 +36,8 @@ PageRecyclerView实现翻页功能及无限轮播。
app:indicator_group_marginBottom="10dp"
app:indicator_group_marginRight="10dp"
app:indicator_margin="@dimen/viewpager_indicator_margin"
app:clipToPadding="false"
app:pagePadding="@dimen/page_padding"
app:layout_flag="grid"
app:orientation="horizontal"
app:overlap_layout="true"
Expand Down Expand Up @@ -63,6 +65,8 @@ PageRecyclerView实现翻页功能及无限轮播。
| indicator_group_marginRight  | 指示器组的marginRight | int | 0 |
| indicator_group_marginBottom | 指示器组的marginBottom | int | 0 |
| indicator_margin | 指示器间的间距 | int | 15 |
| clipToPadding | recyclerView的clipTopadding设置 | int | 15 |
| pagePadding | recyclerView的左右padding设置 | int | 15 |
| layout_flag | 标记线性布局或网格布局 | int     | 0(线性) |
| orientation | 布局方向 | int | 0(horizontal) |
| overlap_layout | 指示器容器是否遮住PageRecyclerView | boolean | false |
Expand All @@ -83,6 +87,11 @@ PageRecyclerView实现翻页功能及无限轮播。
   pageView.updateAll(items);//更新数据
```
## 版本更新
* **1.1.1-release**
* 修复:快速滑动,指示器没有及时更新的问题
* 修复:当引用android O 的recyclerview时,setCurrentItem(1,false)不起效问题
* 添加:clipToPadding和pagePadding的配置

* **1.1.0-release**
* 添加:指示器容器的对齐方式、margin设置、背景设置和overlap布局样式
* 其他:优化代码
Expand Down
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ PageRecyclerView achieves page turning function and unlimited carousel [中文
### add dependencies:
```
dependencies {
implementation 'ckrjfrog.Page:PageView:1.1.2'//gradle plugin 3.0(inclusive) above used
//compile 'ckrjfrog.Page:PageView:1.1.2'//gradle plugin 3.0 below used
implementation 'ckrjfrog.Page:PageView:1.1.3'//gradle plugin 3.0(inclusive) above used
//compile 'ckrjfrog.Page:PageView:1.1.3'//gradle plugin 3.0 below used
}
```

Expand All @@ -36,6 +36,8 @@ PageRecyclerView achieves page turning function and unlimited carousel [中文
app:indicator_group_marginBottom="10dp"
app:indicator_group_marginRight="10dp"
app:indicator_margin="@dimen/viewpager_indicator_margin"
app:clipToPadding="false"
app:pagePadding="@dimen/page_padding"
app:layout_flag="grid"
app:orientation="horizontal"
app:overlap_layout="true"
Expand Down Expand Up @@ -63,6 +65,8 @@ PageRecyclerView achieves page turning function and unlimited carousel [中文
| indicator_group_marginRight  | the marginRight of indicator group | int | 0 |
| indicator_group_marginBottom | the marginBottom of indicator group | int | 0 |
| indicator_margin | indicator spacing | int | 15 |
| clipToPadding | the clipTopadding of recyclerView | int | 15 |
| pagePadding | recyclerView.setPadding(pagePadding,0,pagePading,0) | int | 15 |
| layout_flag | mark linear layout or grid layout | int     | 0(linear layout) |
| orientation | layout orientation | int | 0(horizontal) |
| overlap_layout | Whether the indicator overlaps the page | boolean | false |
Expand All @@ -83,6 +87,11 @@ PageRecyclerView achieves page turning function and unlimited carousel [中文
   pageView.updateAll(items);
```
## Version Tracking
* **1.1.1-release**
* repair: When fast sliding,the indicators don't update in time
* repair: When compiling Android O's recyclerView,the method of setCurrentItem(1,false) doesn't work
* add: clipToPadding and pagePadding Settings

* **1.1.0-release**
* add: the indicator container alignment, margin Settings, background Settings, and overlap layout styles
* other: optimize the code
Expand Down

0 comments on commit 7b97298

Please sign in to comment.