AlphaTileView

AlphaTileView visualizes ARGB color on the view. If you want to visualizes ARGB color on the general view, it will not be shown accurately. because it will be mixed with the parent view's background color. so if you want to visualize ARGB color accurately, should use AlphaTileView.

<com.skydoves.colorpickerview.AlphaTileView
android:id="@+id/alphaTileView"
android:layout_width="55dp"
android:layout_height="55dp"
app:tileSize="20" // the size of the repeating tile
app:tileEvenColor="@color/tile_even" // the color of even tiles
app:tileOddColor="@color/tile_odd"/> // the color of odd tiles

ColorPickerView Methods

Methods

Return

Description

getColor()

int

gets the last selected color.

getColorEnvelope()

ColorEnvelope

gets the ColorEnvelope of the last selected color.

setPaletteDrawable(Drawable drawable)

void

changes palette drawable manually.

setSelectorDrawable(Drawable drawable)

void

changes selector drawable manually.

setSelectorPoint(int x, int y)

void

selects the specific coordinate of the palette manually.

selectCenter()

void

selects the center of the palette manually.

setActionMode(ActionMode)

void

sets the color listener's trigger action mode.

setFlagView(FlagView flagview)

void

sets FlagView on ColorPickerView.

attachAlphaSlider

void

linking an AlphaSlideBar on the ColorPickerView.

attachBrightnessSlider

void

linking an BrightnessSlideBar on the ColorPickerView.

Other Libraries

Other ColorPicker libraries are released!

ColorPickerPreference

A library that let you implement ColorPickerView, ColorPickerDialog, ColorPickerPreference.

Multi-ColorPickerView

You can get colors using multi selectors.
At here you can get a more specialized library on multi-coloring.

Supports

If you feel like support me a coffee for my efforts, I would greatly appreciate it.

License

Copyright 2017 skydoves
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.