Skip to content

Commit

Permalink
new version, close #12
Browse files Browse the repository at this point in the history
  • Loading branch information
nukc committed Jul 4, 2017
1 parent d232506 commit 2e3dc9b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ JCenter:

add the dependency to your build.gradle:
```gradle
compile 'com.github.nukc:loadmorewrapper:1.6'
compile 'com.github.nukc:loadmorewrapper:1.6.2'
```


Expand All @@ -41,7 +41,7 @@ Add it in your root build.gradle at the end of repositories:
Step 2. Add the dependency
```gradle
dependencies {
compile 'com.github.nukc:LoadMoreWrapper:v1.6'
compile 'com.github.nukc:LoadMoreWrapper:v1.6.2'
}
```

Expand Down Expand Up @@ -93,9 +93,11 @@ in the original adapter: [demo](https://github.com/nukc/LoadMoreWrapper/blob/mas

方法名 | 备注
:------------- | :-------------
setLoadMoreEnabled(boolean enabled) | 设置是否启用加载更多,默认 true
setLoadMoreEnabled(boolean enabled) | 设置是否启用加载更多,默认 true
setShowNoMoreEnabled(boolean enabled) | 设置全部加载完后是否显示没有更多视图,默认 false
getOriginalAdapter() | 获取原来的 adapter
getFooterView | 获取加载更多视图
getNoMoreView | 获取没有更多视图

注意:当加载完全部后且已 setLoadMoreEnabled(false),但如果由于生命周期或其他问题而导致 View 重建,mLoadMoreEnabled 依然为 true。
这时候应该需要保存 mLoadMoreEnabled 的状态,如果是 ViewPager + Fragment,可以使用 setOffscreenPageLimit 进行解决。
Expand Down
2 changes: 1 addition & 1 deletion bintray.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def siteUrl = 'https://github.com/nukc/LoadMoreWrapper'
def gitUrl = 'https://github.com/nukc/LoadMoreWrapper.git'

group = "com.github.nukc"
version = "1.6"
version = "1.6.2"

install {
repositories.mavenInstaller {
Expand Down
4 changes: 2 additions & 2 deletions loadmorewrapper/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ android {
defaultConfig {
minSdkVersion 9
targetSdkVersion 25
versionCode 19
versionName "1.6"
versionCode 21
versionName "1.6.2"
}
buildTypes {
release {
Expand Down

0 comments on commit 2e3dc9b

Please sign in to comment.