Skip to content

AlekSt7/RXColorWheel

Repository files navigation

RXColorWheel

RXColorWheel library - it is a fully customizable colorpicker element created based on the native android View.

Article about how it works (in Russian) - https://habr.com/ru/post/694852/

Download

Gradle:

repositories {
        maven { url "https://jitpack.io" }
    }

dependencies {
    implementation 'com.github.alekst7:rxcolorwheel:LATEST_RELEASE (for example v1.0.1)'
}

Usage

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
            }
        });

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages