GitHub - Solartisan/WaveSideBar

Min SDK   19
Latest Commit   2017-06-07 07:01:33
License   

Github   https://github.com/Solartisan/WaveSideBar

         

使用APP客户端扫描二维码运行Demo


         

类似的还有....
LRecyclerView RecyclerView下拉刷新,自动加载更多;仿IOS侧滑Item删除菜单
RecyclerStickyHeaderView Sticky header view or suspending view for RecyclerView.
excelPanel An Android's two-dimensional RecyclerView. Not only can load historical data, but also can load future data.
README

README.md

WaveSideBar project

一个快速跳跃分组的侧边栏控件,示例中配合RecyclerView实现。

波浪的实现采用了三段二次贝塞尔曲线,附一张手稿草图,仅供参考。

Usage

use WaveSideBarView in the layout file

    <cc.solart.wave.WaveSideBarView
        android:id="@+id/side_view"
        android:layout_width="match_parent"
        android:layout_height="match_parent"/>

set OnTouchLetterChangeListener

    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

License

No fucking license. just enjoy it!