Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Solartisan/WaveSideBar


https://github.com/Solartisan/WaveSideBar

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

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!