Skip to content

Commit

Permalink
修复说明文档中错误
Browse files Browse the repository at this point in the history
  • Loading branch information
yhyzgn committed May 24, 2017
1 parent 344a9d1 commit d3444c1
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
17 changes: 12 additions & 5 deletions doc/NavView.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@

```java
@Override
protected void initData(ResultHandler handler) {
protected void initData() {
//请求服务器数据
getDataFromServer();
}
Expand Down Expand Up @@ -195,9 +195,9 @@
```java
bvContent.showCirclePointBadge(0);
bvContent.showTextBadge(1, "2");
bvContent.setOnDismissListener(1, new BGADragDismissDelegate() {
bvContent.setOnDismissListener(1, new BadgeInterface.OnDismissBadgeListener() {
@Override
public void onDismiss(BGABadgeable badgeable) {
public void onDismiss() {
ToastUtils.shortToast("消失了");
}
});
Expand Down Expand Up @@ -334,9 +334,16 @@
* 徽章消失的回调方法
*
* @param index Tab的索引
* @param delegate 回调事件
* @param listener 回调事件
*/
void setOnDismissListener(int index, BGADragDismissDelegate delegate);
void setOnDismissListener(int index, OnDismissBadgeListener listener);

/**
* 徽章消失事件回调接口
*/
interface OnDismissBadgeListener {
void onDismiss();
}
}
```

Expand Down
2 changes: 1 addition & 1 deletion doc/TpgView.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@

```java
@Override
protected void initData(ResultHandler handler) {
protected void initData() {
//请求服务器数据
getDataFromServer();
}
Expand Down

0 comments on commit d3444c1

Please sign in to comment.