WaveSideBar
No description available
Install / Use
/learn @Solartisan/WaveSideBarREADME
WaveSideBar project
一个快速跳跃分组的侧边栏控件,示例中配合RecyclerView实现。
<img src="./preview/simple.gif">波浪的实现采用了三段二次贝塞尔曲线,附一张手稿草图,仅供参考。
<img src="./preview/design.png">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!
Related Skills
node-connect
341.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
341.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.4kCommit, push, and open a PR
