WaveSideBar project
????????????????????RecyclerView???
???????????????????????????????
Usage
WaveSideBarView
in the layout file
use
<cc.solart.wave.WaveSideBarView
android:id="@+id/side_view"
android:layout_width="match_parent"
android:layout_height="match_parent"/>
OnTouchLetterChangeListener
set
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!