Skip to content

Commit 81b38c4

Browse files
committed
Update readme.
1 parent 67c0e3f commit 81b38c4

File tree

6 files changed

+38
-18
lines changed

6 files changed

+38
-18
lines changed

README.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ TwinklingRefreshLayout extended the thoughts of SwipeRefreshLayout,using a ViewG
1818

1919
![](art/gif_recyclerview.gif) ![](art/gif_listview.gif) ![](art/gif_gridview.gif) ![](art/gif_recyclerview2.gif) ![](art/gif_scrollview.gif) ![](art/gif_webview.gif)
2020

21-
You can download the Video for more details.
21+
You can download these Videos for more details.
2222

2323
- [Music - ListView - FixedHeader](art/gif_listview.mp4)
2424
- [Food - RecyclerView - PureScrollMode](art/gif_recyclerview.mp4)
@@ -30,7 +30,7 @@ You can download the Video for more details.
3030
## Usage
3131
#### 1.Add a gradle dependency.
3232
```
33-
compile 'com.lcodecorex:tkrefreshlayout:1.0.5'
33+
compile 'com.lcodecorex:tkrefreshlayout:1.0.6'
3434
```
3535

3636
#### 2.Add TwinklingRefreshLayout in the layout xml.
@@ -87,8 +87,9 @@ Use finishRefreshing() method to end refresh, finishLoadmore() method to end loa
8787
And if you want you refresh automatically, call the method startRefresh().
8888

8989
##### setWaveHeight、setHeaderHeight、setBottomHeight、setOverScrollHeight
90-
- setWaveHeight is used To set the maximum height of the head can be stretched.
90+
- setMaxHeadHeight is used To set the maximum height of the head can be stretched.
9191
- setHeaderHeight is used to set the standard head height.
92+
- setMaxBottomHeight.
9293
- setBottomHeight is used to set the Bottom height.
9394
- setOverScrollHeight is used to set the max height of overscroll.
9495

@@ -119,9 +120,13 @@ Allow you to add a view fixed on the top.
119120
##### setFloatRefresh(boolean)
120121
Make refresh-animation like SwipeRefreshLayout.
121122

123+
##### setTargetView(View view)
124+
Set the target view that you can scroll.
125+
122126
#### 4.Attributes
123-
- tr_wave_height - Flexible head height
127+
- tr_max_head_height - Flexible head height
124128
- tr_head_height - Head height
129+
- tr_max_bottom_height
125130
- tr_bottom_height - Bottom height
126131
- tr_overscroll_height - OverScroll Height
127132
- tr_enable_loadmore - default is true
@@ -160,7 +165,7 @@ fraction = currentMoveHeight/headHeight OR (fraction = currentMoveHeight/bottomH
160165
- setColorSchemeResources(@ColorRes int... colorResIds)
161166

162167
####Footer
163-
##### BottomProgressView(pic 2)
168+
##### BallPulseView(pic 2)
164169
- setNormalColor(@ColorInt int color)
165170
- setAnimatingColor(@ColorInt int color)
166171

@@ -280,6 +285,13 @@ startAnim - be called automatically after the method onRefresh/onLoadMore is cal
280285
Congratulations! Simple to use and simple to Personalise.(To see a more simple example. **TextHeaderView(pic 4)**)。
281286

282287
## Update Logs
288+
#### v1.06
289+
- Repair memory leaks of customized Views.
290+
- remove the dependence of AVLoadingIndicatorView.
291+
- Fix bugs of OverScroll when TargetView scrolls at the top/bottom.
292+
- Repair bugs of touching,scroll-event listeners.
293+
- Optimization of interface flicker problems after load-more.
294+
283295
#### v1.05 Emergency Fix
284296
- Fix the bug of setAutoLoadMore().
285297
- Fix the bug that FixedHeader covered the first item of listview.

README_CN.md

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ TwinklingRefreshLayout延伸了Google的SwipeRefreshLayout的思想,不在列表
1515

1616
![](art/gif_recyclerview.gif) ![](art/gif_listview.gif) ![](art/gif_gridview.gif) ![](art/gif_recyclerview2.gif) ![](art/gif_scrollview.gif) ![](art/gif_webview.gif)
1717

18-
You can download the Video for more details.
18+
You can download these Videos for more details.
1919

2020
- [Music - ListView - FixedHeader](art/gif_listview.mp4)
2121
- [Food - RecyclerView - PureScrollMode](art/gif_recyclerview.mp4)
@@ -28,7 +28,7 @@ You can download the Video for more details.
2828
#### 1.添加gradle依赖
2929
将libray模块复制到项目中,或者直接在build.gradle中依赖:
3030
```
31-
compile 'com.lcodecorex:tkrefreshlayout:1.0.5'
31+
compile 'com.lcodecorex:tkrefreshlayout:1.0.6'
3232
```
3333

3434
#### 2.在xml中添加TwinklingRefreshLayout
@@ -84,8 +84,9 @@ refreshLayout.setOnRefreshListener(new RefreshListenerAdapter(){
8484
如果你想进入到界面的时候主动调用下刷新,可以调用startRefresh()/startLoadmore()方法。
8585

8686
##### setWaveHeight、setHeaderHeight、setBottomHeight、setOverScrollHeight
87-
- setWaveHeight 设置头部可拉伸的最大高度。
87+
- setMaxHeadHeight 设置头部可拉伸的最大高度。
8888
- setHeaderHeight 头部固定高度(在此高度上显示刷新状态)
89+
- setMaxBottomHeight
8990
- setBottomHeight 底部高度
9091
- setOverScrollHeight 设置最大的越界高度
9192

@@ -115,9 +116,13 @@ refreshLayout.setOnRefreshListener(new RefreshListenerAdapter(){
115116
##### setFloatRefresh(boolean)
116117
支持切换到像SwipeRefreshLayout一样的悬浮刷新模式了。
117118

119+
##### setTargetView(View view)
120+
设置滚动事件的作用对象。
121+
118122
#### 4.扩展属性
119-
- tr_wave_height 头部拉伸允许的最大高度
123+
- tr_max_head_height 头部拉伸允许的最大高度
120124
- tr_head_height 头部高度
125+
- tr_max_bottom_height
121126
- tr_bottom_height 底部高度
122127
- tr_overscroll_height 允许越界的最大高度
123128
- tr_enable_loadmore 是否允许加载更多,默认为true
@@ -160,7 +165,7 @@ refreshLayout.setOnRefreshListener(new RefreshListenerAdapter(){
160165
- setColorSchemeResources(@ColorRes int... colorResIds)
161166

162167
####Footer
163-
##### BottomProgressView(pic 2)
168+
##### BallPulseView(pic 2)
164169
- setNormalColor(@ColorInt int color)
165170
- setAnimatingColor(@ColorInt int color)
166171

@@ -295,9 +300,9 @@ startAnim则是在onRefresh/onLoadMore之后才会回调的过程(此处是显
295300
- 理论上解决了触摸、点击以及滚动监听失效等问题
296301
- 新增setTargetView()方法,可设置滚动事件的作用对象
297302
- 添加了CoordinateLayout demo(暂未在RefreshLayout中添加相关逻辑)
298-
- 修复三星、酷派手机出现的兼容问题 TODO
303+
- 修复三星、酷派手机出现的兼容问题
299304
- 修复禁用refresh、loadmore后overscroll不可用的问题
300-
- 修复在顶部、顶部fling时页面闪烁问题
305+
- 修复在顶部、底部fling时页面闪烁问题
301306
- 修复IBottomView中的参数错误,新增max_head_height,max_bottom_height属性,setWaveHeight方法为setMaxHeadHeight
302307

303308
#### v1.05紧急修复版

app/src/main/java/com/lcodecore/twinklingrefreshlayout/ScienceActivity.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
import android.widget.AdapterView;
88
import android.widget.GridView;
99

10-
import com.lcodecore.tkrefreshlayout.Footer.LoadingView;
10+
import com.lcodecore.tkrefreshlayout.footer.LoadingView;
1111
import com.lcodecore.tkrefreshlayout.RefreshListenerAdapter;
1212
import com.lcodecore.tkrefreshlayout.TwinklingRefreshLayout;
1313
import com.lcodecore.tkrefreshlayout.header.SinaRefreshView;

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ allprojects {
1616
repositories {
1717
jcenter()
1818
}
19+
tasks.withType(Javadoc) {
20+
options.addStringOption('Xdoclint:none', '-quiet')
21+
options.addStringOption('encoding', 'UTF-8')
22+
}
1923
}
2024

2125
task clean(type: Delete) {

library/build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ publish{
55
userOrg = 'lcodecorex'
66
groupId = 'com.lcodecorex'
77
artifactId = 'tkrefreshlayout'
8-
publishVersion = '1.0.5'
8+
publishVersion = '1.0.6'
99
website = 'https://github.com/lcodecorex/TwinklingRefreshLayout/'
1010
}
1111

@@ -16,8 +16,8 @@ android {
1616
defaultConfig {
1717
minSdkVersion 12
1818
targetSdkVersion 25
19-
versionCode 5
20-
versionName "1.05"
19+
versionCode 6
20+
versionName "1.06"
2121
}
2222
buildTypes {
2323
release {

library/src/main/java/com/lcodecore/tkrefreshlayout/TwinklingRefreshLayout.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@
1212
import android.widget.FrameLayout;
1313
import android.widget.RelativeLayout;
1414

15-
import com.lcodecore.tkrefreshlayout.Footer.BallPulseView;
15+
import com.lcodecore.tkrefreshlayout.footer.BallPulseView;
1616
import com.lcodecore.tkrefreshlayout.header.GoogleDotView;
1717
import com.lcodecore.tkrefreshlayout.processor.AnimProcessor;
1818
import com.lcodecore.tkrefreshlayout.processor.IDecorator;
1919
import com.lcodecore.tkrefreshlayout.processor.OverScrollDecorator;
2020
import com.lcodecore.tkrefreshlayout.processor.RefreshProcessor;
2121
import com.lcodecore.tkrefreshlayout.utils.DensityUtil;
22-
import com.lcodecore.tkrefreshlayout.utils.ScrollingUtil;
2322

2423
/**
2524
* Created by lcodecore on 16/3/2.

0 commit comments

Comments
 (0)