Skip to content

Commit

Permalink
修改readme
Browse files Browse the repository at this point in the history
  • Loading branch information
chenchongyu committed May 25, 2021
1 parent cd88da7 commit 960dd32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ dependencies{
-keepattributes *Annotation*
```

###2.编写ViewHolder
### 2.编写ViewHolder
添加`@ViewHolder`注解,继承`BaseVH`类,泛型里指定当前ViewHolder需要的数据类型

```
Expand All @@ -63,7 +63,7 @@ public class UserHolder extends BaseVH<User> {
}
}
```
###3.使用
### 3.使用
首先要在应用初始化的时候注册一下(建议在application里)

```
Expand All @@ -88,7 +88,7 @@ mRecyclerView.setAdapter(adapter);

如上,一个列表页就开发完了,是不是很简单?

##高阶用法
## 高阶用法
1.添加ItemClick事件

```
Expand Down

0 comments on commit 960dd32

Please sign in to comment.