Skip to content

Commit

Permalink
1、fix issues#9
Browse files Browse the repository at this point in the history
  • Loading branch information
金文锋 authored and 金文锋 committed Nov 9, 2017
1 parent 7a9f9e2 commit 9293b91
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
1、fix bug <br />
2、新增自动刷新(autoRefresh),禁止刷新(canRefresh)

#### v1.2.7
1、fix issue#9 <br />

## 效果图

<img src = "Screenshot/PullToRefresh.gif" width="600px" />
Expand All @@ -33,7 +36,7 @@
> 目前只支持 Android Studio
``` gradle
compile 'com.jwenfeng.pulltorefresh:library:1.2.5'
compile 'com.jwenfeng.pulltorefresh:library:1.2.7'
```

### 2、布局文件
Expand Down
8 changes: 4 additions & 4 deletions library/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ android {
defaultConfig {
minSdkVersion 16
targetSdkVersion 25
versionCode 9
versionName "1.2.6"
versionCode 10
versionName "1.2.7"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

Expand Down Expand Up @@ -47,8 +47,8 @@ group = "com.jwenfeng.pulltorefresh"
//发布到JCenter上的项目名字,必须填写
def libName = "PullToRefresh"
// 版本号,下次更新是只需要更改版本号即可
version = "1.2.6"
/** 上面配置后上传至jcenter后的编译路径是这样的: compile 'com.jwenfeng.pulltorefresh:library:1.2.6' **/
version = "1.2.7"
/** 上面配置后上传至jcenter后的编译路径是这样的: compile 'com.jwenfeng.pulltorefresh:library:1.2.7' **/

//生成源文件
task sourcesJar(type: Jar) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,7 @@ public void setCanRefresh(boolean canRefresh) {
*/
public void setHeaderView(HeadView mHeaderView) {
this.mHeaderView = mHeaderView;
addHeadView();
}

/**
Expand All @@ -496,6 +497,7 @@ public void setHeaderView(HeadView mHeaderView) {
*/
public void setFooterView(FooterView mFooterView) {
this.mFooterView = mFooterView;
addFooterView();
}


Expand Down

0 comments on commit 9293b91

Please sign in to comment.