Skip to content

Commit a1b8141

Browse files
committed
2 parents 2fb57ec + 6935491 commit a1b8141

File tree

2 files changed

+49
-45
lines changed

2 files changed

+49
-45
lines changed

README-cn.md

Lines changed: 46 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -2,51 +2,49 @@
22

33
MaterialRefreshLayout v1.3.0
44
==================================
5-
This is a drop-down refresh control, it is more beautiful and powerful than SwipeRefreshLayout.It is easy to use and support API LEVEL >= 11 . I hope you like it !
5+
这是一个下拉刷新控件,它比SwipeRefreshLayout更漂亮和强大,使用也比较简单。支持android 3.0 以上。希望你喜欢,呵呵。
66
![](http://www.apkbus.com/data/attachment/forum/201509/11/095859kp297mjmj2php5pm.jpg)
77

8-
Now let me talk about MaterialRefreshLayout of function
8+
现在让我来说说他有多牛逼的功能吧,其实也就那样......
99
---------------------------------------------------------------------------
10-
(1)It can be done like SwipeRefreshLayout drop-down refresh effect,this is a kind of intrusive drop-down refresh.
10+
(1)如果你喜欢官方的刷新效果,没问题,它也可以做到,这是一种侵入式的下拉刷新
1111

1212
![](http://www.apkbus.com/data/attachment/forum/201509/10/145037bwzigoghgrk414hw.gif)
1313

14-
15-
(2)However, there are some people who are not as like invasive drop-down refresh, so, it also has a non-invasive drop-down refresh function.
14+
(2)然而,有些人并不喜欢侵入刷新,或者说,需求需要的是非侵入刷新,没问题,它同样可以做到......
1615

1716
![](http://www.apkbus.com/data/attachment/forum/201509/10/145142fp1z3fp0hkx0apg3.gif)
1817

19-
20-
(3)If you feel too drab, we can add a background of the wave shape.
18+
(3)如果你觉得上面的效果太单调了,好的,我们可以加个波浪形状的背景,就像下图所示
2119

2220
![](http://www.apkbus.com/data/attachment/forum/201509/10/144913t3beqg3eics1xwwr.gif)
2321

2422

25-
(4)If you want to make waveform covering on content, it can be done.
23+
(4)如果这时候你想要侵入式的刷新,又要有波浪背景,也就是所有效果覆盖在内容之上的话,没问题,它还是可以做到的,呵呵......
2624

2725
![](http://www.apkbus.com/data/attachment/forum/201509/10/144736ah8xaeamz155zq54.gif)
2826

2927

30-
(5)if you like the most simple effect,You can see the image below.
28+
(5)现在如果你又在想,还是最简单的效果最好的话,没问题,你可以看看下图所示的效果......
3129

3230
![](http://www.apkbus.com/data/attachment/forum/201509/10/145326ttfgttgm3gg68tgf.gif)
3331

34-
(6)MaterialRefreshLayout Can pull load more, drop-down refresh automatically, pull up refresh automatically.
32+
(6)听从了很多人的意见,新加了上拉加载更多,自动下拉刷新,自动上拉刷新等效果......
3533

36-
(7)There are a lot of functions, you can see the source code...
34+
(7)具体你看源码吧,呵呵......
3735

38-
Usage
36+
用法
3937
=================================================
4038

41-
Add dependency.
39+
AS添加依赖库,这样就不用导入整个library库,Eclipse的用户导入library库,慢慢折腾吧!(因为我觉得如果不是环境不允许你用as的话,还是放弃eclipse吧,毕竟github上很多优秀的项目都是用as的,好吧我多嘴了...)
4240

4341
```
4442
dependencies {
4543
compile 'com.cjj.materialrefeshlayout:library:1.3.0'
4644
}
4745
```
4846

49-
Use it in your layout xml.
47+
在你的layout xml.添加下面的代码
5048
```xml
5149
<com.cjj.MaterialRefreshLayout
5250
xmlns:android="http://schemas.android.com/apk/res/android"
@@ -59,35 +57,35 @@ Use it in your layout xml.
5957

6058
</com.cjj.MaterialRefreshLayout>
6159
```
62-
Get instance and use it.
60+
实例化它并设置监听,onrefresh是必须实现的,其他都是方法可选,为了代码可读性而设计......
6361
```java
6462
materialRefreshLayout = (MaterialRefreshLayout) findViewById(R.id...);
6563
materialRefreshLayout.setMaterialRefreshListener(new MaterialRefreshListener() {
6664
@Override
6765
public void onRefresh(final MaterialRefreshLayout materialRefreshLayout) {
68-
//refreshing...
66+
//下拉刷新...
6967
}
7068

7169
@Override
7270
public void onRefreshLoadMore(MaterialRefreshLayout materialRefreshLayout) {
73-
//load more refreshing...
71+
//上拉刷新...
7472
}
7573
}
7674

77-
// refresh complete
75+
// 结束下拉刷新...
7876
materialRefreshLayout.finishRefresh();
7977

80-
// load more refresh complete
78+
// 结束上拉刷新...
8179
materialRefreshLayout.finishRefreshLoadMore();
8280
```
8381

84-
Config
82+
配置
8583
=============
86-
(1)if you like SwipeRefreshLayout drop-down refresh effect
84+
(1)如果你喜欢官方的刷新效果
8785

8886
![](http://www.apkbus.com/data/attachment/forum/201509/10/171338y8ufsxjrs7k2rxu3.jpg)
8987

90-
In xml, use attributes.
88+
在xml中, 设置以下属性
9189
```xml
9290
<com.cjj.MaterialRefreshLayout
9391
xmlns:android="http://schemas.android.com/apk/res/android"
@@ -99,17 +97,17 @@ In xml, use attributes.
9997
app:wave_show="false"
10098
>
10199
```
102-
In java code.
100+
在代码中是这样的:
103101
```java
104102
materialRefreshLayout.setIsOverLay(true);
105103
materialRefreshLayout.setWaveShow(false);
106104
```
107105

108-
(2)if you like non-invasive drop-down refresh effect
106+
(2)如果你喜欢非侵入刷新
109107

110108
![](http://www.apkbus.com/data/attachment/forum/201509/10/171336i3x75d7x4tadxezt.jpg)
111109

112-
In xml, use attributes.
110+
在xml中, 设置以下属性
113111
```xml
114112
<com.cjj.MaterialRefreshLayout
115113
xmlns:android="http://schemas.android.com/apk/res/android"
@@ -121,16 +119,16 @@ In xml, use attributes.
121119
app:wave_show="false"
122120
>
123121
```
124-
In java code.
122+
在代码中是这样的:
125123
```java
126124
materialRefreshLayout.setIsOverLay(false);
127125
materialRefreshLayout.setWaveShow(false);
128126
```
129-
(3)if you like add a background of the wave shape.
127+
(3)如果你觉得上面的效果太单调了,加个波浪形状的背景,就像下图所示
130128

131129
![](http://www.apkbus.com/data/attachment/forum/201509/10/171339lvhk3n3h4wkgkgdc.jpg)
132130

133-
In xml, use attributes.
131+
在xml中, 设置以下属性
134132
```xml
135133
<com.cjj.MaterialRefreshLayout
136134
xmlns:android="http://schemas.android.com/apk/res/android"
@@ -144,13 +142,13 @@ In xml, use attributes.
144142
app:wave_height_type="normal" (higher)
145143
>
146144
```
147-
In java code.
145+
在java代码中是这样的:
148146
```java
149147
materialRefreshLayout.setWaveColor(0xffffffff);
150148
materialRefreshLayout.setIsOverLay(false);
151149
materialRefreshLayout.setWaveShow(true);
152150
```
153-
(4)If you want to make waveform covering on content
151+
(4)你想要侵入式的刷新,又要有波浪背景,也就是所有效果覆盖在内容之上
154152

155153
![](http://www.apkbus.com/data/attachment/forum/201509/10/171334xtd0xphsag4ww4gs.jpg)
156154

@@ -168,14 +166,14 @@ materialRefreshLayout.setWaveShow(true);
168166
app:wave_height_type="higher"
169167
>
170168
```
171-
In java code.
169+
在java代码中是这样的:
172170
```java
173171
materialRefreshLayout.setWaveColor(0xf90fffff);
174172
materialRefreshLayout.setIsOverLay(true);
175173
materialRefreshLayout.setWaveShow(true);
176174
```
177175

178-
(5)other...
176+
(5)其他...
179177

180178
![](http://www.apkbus.com/data/attachment/forum/201509/10/171341xrgamch93mad4pcg.jpg)
181179

@@ -194,7 +192,7 @@ materialRefreshLayout.setWaveShow(true);
194192
>
195193
```
196194

197-
(6)add pull up loading more features...
195+
(6)上拉加载更多...
198196

199197
![](http://www.apkbus.com/data/attachment/forum/201509/16/180340xypx76ypefpdzfrf.png)
200198

@@ -209,14 +207,14 @@ materialRefreshLayout.setWaveShow(true);
209207
>
210208

211209
```
212-
In java code.
210+
在java代码中是这样的:
213211
```java
214212
materialRefreshLayout.setLoadMore(true);
215213
```
216214

217-
(7) It can drop-down refresh automatically and pull up refresh automatically.
215+
(7)自动下拉刷新,自动上拉刷新.
218216

219-
In java code.
217+
在java代码中是这样的:
220218
```java
221219
materialRefreshLayout.autoRefresh();//drop-down refresh automatically
222220
materialRefreshLayout.autoRefreshLoadMore();// pull up refresh automatically
@@ -225,29 +223,33 @@ In java code.
225223

226224
V 1.3.0
227225
===========================
228-
add drop-down refresh automatically and pull up refresh automatically
226+
添加自动下拉刷新,自动上拉刷新.
229227

230228
V 1.2.1
231229
===========================
232-
add pull up loading more features
230+
添加上拉加载更多...
233231

234232
V 1.2.0
235233
===========================
236-
add progress size type ,you can use xml attr to set app:progress_size_type="normal"(big) and fix some bugs
234+
添加了可设置加载圆圈的大小,有两种模式可以选择,在xml配置属性app:progress_size_type="normal"(big)和修复一些bug
237235

238236
V 1.1.0
239237
===========================
240-
a new way to perform animations with support library, the library size and the amount of libraries decreased.
238+
一个全新的动画展示效果,减小了库的大小,很不幸的从支持api 8 升到 api 11 不过,也没多少人用2.x.x的手机了......
241239

240+
V 1.0.0
241+
===================================================================
242+
支持api 8,第一版本,啊哈哈......
242243

243-
AT LAST
244+
最后
244245
===================================================================
245-
If the MaterialRefreshLayout has failed to meet to your requirements, you can go to the [BeautifulRefreshLayout](https://github.com/android-cjj/BeautifulRefreshLayout) to find what you need.
246+
如果这些都没能满足你的需求的话,没问题,你可以去看看[BeautifulRefreshLayout](https://github.com/android-cjj/BeautifulRefreshLayout),我想,你可以找到一个专属于你的人...错了...是下拉刷新......
247+
246248

247-
[About me](http://android-cjj.github.io/)
249+
[关于我](http://android-cjj.github.io/)
248250
------------------------------------
249251

250-
Thanks
252+
感谢
251253
============================================
252254

253255
[lsjwzh/MaterialLoadingProgressBar](https://github.com/lsjwzh/MaterialLoadingProgressBar)

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
[![Android Gems](http://www.android-gems.com/badge/android-cjj/Android-MaterialRefreshLayout.svg?branch=master)](http://www.android-gems.com/lib/android-cjj/Android-MaterialRefreshLayout)
1+
[![Android Gems](http://www.android-gems.com/badge/android-cjj/Android-MaterialRefreshLayout.svg?branch=master)](http://www.android-gems.com/lib/android-cjj/Android-MaterialRefreshLayout)
2+
[中文版文档](https://github.com/android-cjj/Android-MaterialRefreshLayout/blob/master/README-cn.md)
3+
--------------------------------------------
24

35
MaterialRefreshLayout v1.3.0
46
==================================

0 commit comments

Comments
 (0)