Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
sunguodong committed Mar 3, 2017
2 parents 5c921a8 + 38e1ff9 commit 3ca9c42
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,20 @@ 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.1.x
* 优化

### 1.0.7
1.0.7
* 默认不再显示左侧的悬浮气泡
* 默认排序方式改为快速排序,提供一个MODE_NONE的排序方式

### 1.0.6
1.0.6
* 修复滑动过快时,StickyView显示的字母可能不正确的问题

### 1.0.5
1.0.5
为HeaderView/FooterView添加:
* `indexableLayout.removeHeaderAdapter();`
* `headerAdapter.addData()`
Expand All @@ -44,7 +47,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 +116,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 3ca9c42

Please sign in to comment.