Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Commit

Permalink
Update README and version.
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeAfc committed May 2, 2018
1 parent 2e43cc9 commit c16d1d4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
12 changes: 9 additions & 3 deletions README-ch.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ UltraViewPager继承自RelativeLayout,将ViewPager和indicator置于其中,
竖向滑动是通过在ViewPager的onInterceptTouchEvent和onTouchEvent中交换横竖向的event location,同时设置特殊PageTransformer实现,详见源码.

#### 使用方法
版本请参考mvn repository上的最新版本(目前最新版本是1.0.7.6),最新的 aar 都会发布到 jcenter 和 MavenCentral 上,确保配置了这两个仓库源,然后引入aar依赖:
版本请参考mvn repository上的最新版本(目前最新版本是1.0.7.7),最新的 aar 都会发布到 jcenter 和 MavenCentral 上,确保配置了这两个仓库源,然后引入aar依赖:

```
//gradle
compile ('com.alibaba.android:ultraviewpager:1.0.7.6@aar') {
compile ('com.alibaba.android:ultraviewpager:1.0.7.7@aar') {
transitive = true
}
Expand All @@ -45,7 +45,7 @@ compile ('com.alibaba.android:ultraviewpager:1.0.7.6@aar') {
<dependency>
<groupId>com.alibaba.android</groupId>
<artifactId>ultraviewpager</artifactId>
<version>1.0.7.6</version>
<version>1.0.7.7</version>
<type>aar</type>
</dependency>
Expand Down Expand Up @@ -94,6 +94,12 @@ ultraViewPager.setAutoScroll(2000);
```
Api接口详情请参考[文档](ATTRIBUTES-ch.md)

#### FAQ
* 如何刷新数据? 可以使用一下三种方法的任意一种:
* ultraViewPager.refresh();
* ultraViewPager.getWrapAdapter().notifyDataSetChanged();
* mViewPager.getViewPager().getAdapter().notifyDataSetChanged();

#### DEMO

[Demo工程](https://github.com/alibaba/UltraViewPager/tree/master/sample)
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ In order to achieve vertical scroll, through exchanging MotionEvent in onInterce

#### Usage

Please find the latest version(1.0.7.6 so far) in maven repository. The newest version has been upload to jcenter and MavenCantral, make sure you have added at least one of these repositories.
Please find the latest version(1.0.7.7 so far) in maven repository. The newest version has been upload to jcenter and MavenCantral, make sure you have added at least one of these repositories.

Using Gradle:

```
//gradle
compile ('com.alibaba.android:ultraviewpager:1.0.7.6@aar') {
compile ('com.alibaba.android:ultraviewpager:1.0.7.7@aar') {
transitive = true
}
```
Expand All @@ -48,7 +48,7 @@ or grab via Maven:
<dependency>
<groupId>com.alibaba.android</groupId>
<artifactId>ultraviewpager</artifactId>
<version>1.0.7.6</version>
<version>1.0.7.7</version>
<type>aar</type>
</dependency>
Expand Down Expand Up @@ -98,6 +98,12 @@ ultraViewPager.setAutoScroll(2000);
```
For other API reference,see [this](ATTRIBUTES.md) to read more.

#### FAQ
* How to refresh data? you can refresh data by any one below three method:
* ultraViewPager.refresh();
* ultraViewPager.getWrapAdapter().notifyDataSetChanged();
* mViewPager.getViewPager().getAdapter().notifyDataSetChanged();

#### DEMO

[Demo Project](https://github.com/alibaba/UltraViewPager/tree/master/sample)
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
GROUP=com.alibaba.android
ARTIFACT=ultraviewpager
VERSION=1
VERSION_NAME=1.0.7.6
VERSION_NAME=1.0.7.7
PACKAGING_TYPE=aar
systemProp.compileSdkVersion=25
systemProp.targetSdkVersion=25
Expand Down

0 comments on commit c16d1d4

Please sign in to comment.