A simple customer view to choose color.
This view will save state when configuration changed, like activity orientation change.
Step 1. Add the JitPack repository to your build file
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.SirLYC:ColorPicker:latest.release"
}
You can find examples in sample
module.