Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Solartisan/WaveSideBar
https://github.com/Solartisan/WaveSideBar
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/Solartisan/WaveSideBar
- Owner: Solartisan
- Created: 2016-05-31T06:50:52.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-06-07T07:01:33.000Z (over 7 years ago)
- Last Synced: 2024-10-30T03:43:02.379Z (about 1 month ago)
- Language: Java
- Size: 813 KB
- Stars: 1,179
- Watchers: 20
- Forks: 196
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-github-android-ui - WaveSideBar - 快速跳跃分组的侧边栏控件 (SideBar)
README
WaveSideBar project
===================一个快速跳跃分组的侧边栏控件,示例中配合RecyclerView实现。
波浪的实现采用了三段二次贝塞尔曲线,附一张手稿草图,仅供参考。
Usage
---
#### **use `WaveSideBarView` in the layout file**```xml
```#### **set `OnTouchLetterChangeListener`**
```java
mSideBarView.setOnTouchLetterChangeListener(new WaveSideBarView.OnTouchLetterChangeListener() {
@Override
public void onLetterChange(String letter) {
int pos = adapter.getLetterPosition(letter);if (pos != -1) {
mRecyclerView.scrollToPosition(pos);
}
}
});
```
Thanks
------
used PinnedHeaderDecoration in
[RecyclerItemDecoration](https://github.com/dinuscxj/RecyclerItemDecoration)
License
---No fucking license. just enjoy it!