Skip to content

Commit

Permalink
Update to 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
YoKeyword committed Mar 2, 2017
1 parent fd2fb21 commit d2dce04
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ A RecyclerView with indexable, sticky and many other features.
6、使用[TinyPinyin](https://github.com/promeG/TinyPinyin)代替Pinyin4j.jar库,体积更小,拼音转化速度提升4倍!

# 更新日志
### 1.1.0,1.1.1
* 优化
### 1.2.0
* 支持GridLayoutManager! (感谢[guodongAndroid](https://github.com/guodongAndroid))

### 1.0.7
* 默认不再显示左侧的悬浮气泡
Expand All @@ -44,7 +44,7 @@ A RecyclerView with indexable, sticky and many other features.
### gradle
项目下app的build.gradle中依赖:
````xml
compile 'me.yokeyword:indexablerecyclerview:1.1.1'
compile 'me.yokeyword:indexablerecyclerview:1.2.0'
compile 'com.android.support:appcompat-v7:你使用的版本号'
compile 'com.android.support:recyclerview-v7:你使用的版本号'
````
Expand Down Expand Up @@ -113,6 +113,9 @@ public class CityAdapter extends IndexableAdapter<CityEntity> {

**3、绑定视图和数据**
````java
// 支持LinearLayoutManager, GridLayoutManager
indexableLayout.setLayoutManager(LayoutManager);

CityAdapter adapter = new CityAdapter(this);
indexableLayout.setAdapter(adapter);
// 排序过程是异步的 另有setDatas(mDatas,IndexCallback callback) // callback在datas异步排序结束后回调
Expand Down

0 comments on commit d2dce04

Please sign in to comment.