ColorSeekBar alternatives and similar packages
Based on the "SeekBar Widget" category.
Alternatively, view ColorSeekBar alternatives based on common mentions on social networks and blogs.
-
discreteSeekBar
DiscreteSeekbar is my poor attempt to develop an android implementation of the Discrete Slider component from the Google Material Design Guidelines. -
HorizontalWheelView
Custom view for user input that models horizontal wheel controller. -
circularseekbar
Custom circular SeekBar (Circle, Semi-circle, and Ellipse) View/Widget for Android -
AndroidCircularSeekBar
A circular seek bar for Android -
RangeSeekbar
A seekbar contains two cursor(left and right). Multiple touch supported. -
HoloCircleSeekBar
Android circle seekbar widget inspired from: https://github.com/LarsWerkman/HoloColorPicker -
SeekBarCompat
A simple material-based support library to bring consistent SeekBars on Android 14 and above -
StartPointSeekBar
StartPointSeekBar is a custom view for the Android platform that makes it possible to have a SeekBar to have custom start point. -
ColorSeekBar : Color picker library
A color picker seekbar for android. -
CircularSeekBar
Simple custom Android View providing a Circular spin to SeekBars
Appwrite - The Open Source Firebase alternative introduces iOS support
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of ColorSeekBar or a related project?
README
ScreenShot:
Attrs
attr | format | default |
---|---|---|
colorSeeds | references | |
colorBarPosition | integer | 0 |
alphaBarPosition | integer | 0 |
maxPosition | integer | 100 |
bgColor | color | TRANSPARENT |
barHeight | dimension | 2dp |
barMargin | dimension | 5dp |
thumbHeight | dimension | 30dp |
showAlphaBar | boolean | false |
showColorBar | boolean | true |
isVertical | boolean | false |
disabledColor | color | Color.GRAY |
showThumb | boolean | true |
barRadius | dimension | 0px |
Gradle:
Step 1. Add the JitPack repository in your root build.gradle at the end of repositories:
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step 2. Add the dependency
implementation 'com.github.rtugeek:colorseekbar:1.7.7'
Usage
XML
<com.rtugeek.android.colorseekbar.ColorSeekBar
android:id="@+id/colorSlider"
android:layout_width="match_parent"
app:colorSeeds="@array/material_colors"
android:layout_height="wrap_content" />
JAVA
colorSeekBar.setMaxPosition(100);
colorSeekBar.setColorSeeds(R.array.material_colors); // material_colors is defalut included in res/color,just use it.
colorSeekBar.setColorBarPosition(10); //0 - maxValue
colorSeekBar.setAlphaBarPosition(10); //0 - 255
colorSeekBar.setPosition(10,10); // An easier way to set ColorBar and AlphaBar
colorSeekBar.setShowAlphaBar(true);
colorSeekBar.setBarHeight(5); //5dpi
colorSeekBar.setThumbHeight(30); //30dpi
colorSeekBar.setBarMargin(10); //set the margin between colorBar and alphaBar 10dpi
Listener
colorSeekBar.setOnColorChangeListener(new ColorSeekBar.OnColorChangeListener() {
@Override
public void onColorChangeListener(int colorBarPosition, int alphaBarPosition, int color) {
textView.setTextColor(color);
//colorSeekBar.getAlphaValue();
}
});
Vertical Bar
<com.rtugeek.android.colorseekbar.ColorSeekBar
android:id="@+id/colorSlider"
android:layout_width="match_parent"
app:colorSeeds="@array/material_colors"
app:isVertical="true"
android:layout_height="wrap_content" />
getColor() issue
Render flow:
1.Activity->onCreate();
2.Activity->onResume();
3.ColorSeekBar->onMeasure();
4.ColorSeekBar->onSizeChanged();
5.ColorSeekBar->init();
6.ColorSeekBar->onMeasure();
7.ColorSeekBar->onDraw();
getColor()/getColors()/getColorIndexPosition() do not work correct until onDraw() method invoked. So, If you want to get color or something else form ColorSeekBar on Activity.onCreate() function, just do:
mColorSeekBar.setOnInitDoneListener(new ColorSeekBar.OnInitDoneListener() {
@Override` `
public void done() {
mColorSeekBar.getColorIndexPosition(mColor);
//mColorSeekBar.getColors();
//mColorSeekBar.getColor();
}
});
Spread the word
License
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Leon Fu <[email protected]>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. You just DO WHAT THE FUCK YOU WANT TO.
*Note that all licence references and agreements mentioned in the ColorSeekBar README section above
are relevant to that project's source code only.