Skip to content

Commit

Permalink
add default Callback
Browse files Browse the repository at this point in the history
  • Loading branch information
KingJA committed Oct 13, 2017
1 parent 9195d66 commit 8d58fe7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 3 additions & 3 deletions README-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ LoadSir的使用,只需要简单的三步
### 添加依赖

```groovy
compile 'com.kingja.loadsir:loadsir:1.2.2'
compile 'com.kingja.loadsir:loadsir:1.3.0'
```

### 第一步:配置
Expand Down Expand Up @@ -208,8 +208,8 @@ public class CustomCallback extends Callback {
}

@Override
protected boolean onRetry(final Context context, View view) {
Toast.makeText(context.getApplicationContext(), "Hello mother fuck! :p", Toast.LENGTH_SHORT).show();
protected boolean onReloadEvent(final Context context, View view) {
Toast.makeText(context.getApplicationContext(), "Hello buddy! :p", Toast.LENGTH_SHORT).show();
(view.findViewById(R.id.iv_gift)).setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ LoadSir only needs 3 steps to finish its task: **Config** -> **Register** -> **D
### Download

```groovy
compile 'com.kingja.loadsir:loadsir:1.2.2'
compile 'com.kingja.loadsir:loadsir:1.3.0'
```

### Step 1: Config
Expand Down Expand Up @@ -214,7 +214,7 @@ public class CustomCallback extends Callback {
}

@Override
protected boolean onRetry(final Context context, View view) {
protected boolean onReloadEvent(final Context context, View view) {
Toast.makeText(context.getApplicationContext(), "Hello buddy! :p", Toast.LENGTH_SHORT).show();
(view.findViewById(R.id.iv_gift)).setOnClickListener(new View.OnClickListener() {
@Override
Expand Down
4 changes: 1 addition & 3 deletions docs/NextVersion.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ The Next Version

The next version will include:

**1.2.x**
**1.3.x**
- [ ] Samples how to use LoadSir with other common open-source libs.
- [x] in default, addView(SuccessfulView). Hide SuccessfulView instead of removeView(SuccessfulView).
- [x] add default Callback `ProgressCallback`, `HintCallback`.
- [ ] you tell me
3 changes: 3 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
Changelog
---
**1.3.0**
- [x] in default, addView(SuccessfulView). Hide SuccessfulView instead of removeView(SuccessfulView).
- [x] add default Callback `ProgressCallback`, `HintCallback`.

* **v1.2.2**
- [x] change minSdkVersion 16 to 14 [issues #8](https://github.com/KingJA/LoadSir/issues/8)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@
import android.view.ViewGroup;
import android.widget.LinearLayout;

import com.kingja.loadsir.R;
import com.kingja.loadsir.callback.Callback;
import com.kingja.loadsir.callback.ProgressCallback;
import com.kingja.loadsir.callback.SuccessCallback;

import java.util.List;
Expand Down

0 comments on commit 8d58fe7

Please sign in to comment.