Karamunting.Android.MrBIMC.VintageChroma

A Beautiful and very advanced material color picker for Xamarin.Android


Keywords
droid, color, color-picker, picker, cmyk, material, mono, rgb, material-design, xamarin, android, xamarin.android, xamarin-android, android-library, mono.droid
Install
Install-Package Karamunting.Android.MrBIMC.VintageChroma -Version 1.5.0

Documentation

VintageChroma

A Beautiful Material color picker view for Android.

Identical remake of Chroma by Priyesh Patel in Java instead of Kotlin, so it is much more lightweight for using in kotlin-less apps :D

If your app is written in kotlin, I recommend you using original lib instad.

Screenshots

Download

//try this:
compile 'com.pavelsikun:vintage-chroma:1.0'

// but it's so bleeding edge, it might not yet be in jcenter! (@ 29.03.2016 02:25 EEST)
// so if it doesn't work *yet*, add this as your repo *temporary*:
repositories {
    maven {
        url  "http://dl.bintray.com/mrbimc/maven"
    }
}

Usage

To display an RGB color picker DialogFragment:

new ChromaDialog.Builder()
    .initialColor(Color.GREEN)
    .colorMode(ColorMode.ARGB) // RGB, ARGB, HVS
    .onColorSelected(color -> /* do your stuff */)
    .create()
    .show(getFragmentManager(), "ChromaDialog");

Check out the sample project for more details.

License

Copyright 2016 Pavel Sikun.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.