RXColorWheel library - it is a fully customizable colorpicker element created based on the native android View
.
Gradle:
repositories {
maven { url "https://jitpack.io" }
}
dependencies {
implementation 'com.github.alekst7:rxcolorwheel:LATEST_RELEASE (for example v1.0.1)'
}
More details on the wiki of the project.
There is example of basic usage here:
XML:
<com.example.rxcolorwheel.RXColorWheel
android:id="@+id/YOUR_ID"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Java:
RXColorWheel colorPicker = findViewById(R.id.your_id_from_xml);
colorPicker.setColorChangeListener(new RXColorWheel.ColorChagneListener() {
@Override
public void onColorChanged(int color) {
//Your code here
}
@Override
public void firstDraw(int color) {
//Your code here
}
});
MIT