BalloonPicker
A slimy Android balloon seek bar library in Kotlin
Install / Use
/learn @fairytale110/BalloonPickerREADME
BalloonPicker
A slimy Android balloon seek bar library in Kotlin,
<p align="center"> <img src="blogpost/image/preview.gif" height="500" > <p align="center"> <em>preview</em> </p> </p>开始使用
Add it in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2. Add the dependency
dependencies {
implementation 'com.github.fairytale110:BalloonPicker:1.0.1'
}
Then, Drop it to XML layout or new it
<tech.nicesky.balloonpicker.BalloonPickerView
android:id="@+id/balloon_picker"
android:layout_width="match_parent"
android:layout_height="wrap_content"
/>
Finally, custom it's style as you want
fun load(){
balloon_picker.layerValues(10, 50, 5)
balloon_picker.defaultValue(30)
balloon_picker.setColorFoThumb("#FFFFFF".toColorInt(), "#512DA8".toColorInt())
balloon_picker.setColorForLayer("#512DA8".toColorInt(), "#BDBDBD".toColorInt())
balloon_picker.setColorForBalloon("#512DA8".toColorInt())
balloon_picker.setColorForBalloonValue("#FFFFFF".toColorInt())
balloon_picker.colorOfDesc = "#000000".toColorInt()
balloon_picker.colorOfValue = "#000000".toColorInt()
balloon_picker.desc = "Quantity"
balloon_picker.valueListener = object : BalloonPickerListener{
override fun changed(value: Long) {
Log.w("MainActivity","value: $value")
}
}
// val valueSelected = balloon_picker.getValue()
}
当然,这个控件还有很大的优化空间,欢迎诸位一起探讨。
THANKS
All design and inspiration credits belongs to Cuberto
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.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
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
