hsv-alpha-color-picker-android alternatives and similar packages
Based on the "Other Widget" category.
Alternatively, view hsv-alpha-color-picker-android alternatives based on common mentions on social networks and blogs.
-
AndroidSlidingUpPanel
This library provides a simple way to add a draggable sliding up panel (popularized by Google Music and Google Maps) to your Android application. Brought to you by Umano. -
BottomBar
(Deprecated) A custom view component that mimics the new Material Design Bottom Navigation pattern. -
ShortcutBadger
An Android library supports badge notification like iOS in Samsung, LG, Sony and HTC launchers. -
SystemBarTint
[DEPRECATED] Apply background tinting to the Android system UI when using KitKat translucent modes -
TapTargetView
An implementation of tap targets from the Material Design guidelines for feature discovery. -
android-viewbadger
[DEPRECATED] A simple way to "badge" any given Android view at runtime without having to cater for it in layout -
android-iconify
Android integration of multiple icon providers such as FontAwesome, Entypo, Typicons,... -
android-stackblur
Android StackBlur is a library that can perform a blurry effect on a Bitmap based on a gradient or radius, and return the result. The library is based on the code of Mario Klingemann. -
DraggablePanel
DISCONTINUED. Android library used to create an awesome Android UI based on a draggable element similar to the last YouTube graphic component. -
aFileChooser
DISCONTINUED. [DEPRECATED] Android library that provides a file explorer to let users select files on external storage. -
Swipecards
A Tinder-like Android library to create the swipe cards effect. You can swipe left or right to like or dislike the content. -
TourGuide
TourGuide is an Android library that aims to provide an easy way to add pointers with animations over a desired Android View -
StickyGridHeaders
DISCONTINUED. An Android Library that makes it easy to make grid views with sectioned data and headers that stick to the top. -
FloatingView
FloatingView can make the target view floating above the anchor view with cool animation -
TileView
TileView is a subclass of android.view.ViewGroup that asynchronously displays, pans and zooms tile-based images. Plugins are available for features like markers, hotspots, and path drawing. -
Bubbles for Android
Bubbles for Android is an Android library to provide chat heads capabilities on your apps. With a fast way to integrate with your development. -
RippleView
View that imitates Ripple Effect on click which was introduced in Android L (for Android 2.3+) -
android-sliding-layer-lib
DISCONTINUED. Highly customizable SlidingLayer as you have seen in Wunderlist -
Android-ActionItemBadge
This library offers a simple method to add a small badge icon to your ActionBar-MenuItem -
SortableTableView
An Android library containing a simple TableView and an advanced SortableTableView providing a lot of customisation possibilities to fit all needs. -
ScratchView
ScratchView repo is UX Design involving scratch cards like views which are scratched to reveal the information they conceal. -
FabricView
A new canvas drawing library for Android. Aims to be the Fabric.js for Android. Supports text, images, and hand/stylus drawing input. The library has a website and API docs, check it out
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of hsv-alpha-color-picker-android or a related project?
README
HSV-Alpha Color Picker for Android
This library implements a color picker and a color preference for use in Android applications.
[Portrait](docs/portrait.png) [Landscape](docs/landscape.png) [Preferences](docs/preference.png)
Features
I couldn't find this combination of features in an existing library, which is why I wrote this one:
- Alpha slider.
- Text field to copy and paste hex color values.
- Old and new colors displayed side by side.
- Optional selection of "no color".
- Proper behavior when orientation changes.
- Up-to-date design.
In addition, the Hue-Saturation picker...
- gives higher hue precision than a square picker of the same size.
- allows easier selection of pure white than a circular picker.
Demo App
A demo is available on the Play Store. Source code for the app is in the demo_app folder in this repo.
Using the Library
Add the library dependency to your app module's build.gradle:
dependencies {
compile 'com.rarepebble:colorpicker:3.0.1'
}
Add jcenter() to your repository list if it isn't there already.
If using AndroidX, set android.enableJetifier=true in your gradle.properties.
ColorPreference Usage
Add the ColorPreference to your preference screen xml. Don't forget the extra xmlns: declaration if using the custom attributes described below.
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.rarepebble.colorpicker.ColorPreference
android:key="simplePreference"
android:title="@string/pref_title"
android:defaultValue="#f00"
/>
</PreferenceScreen>
The above example will store a color with the key "simplePreference" in the default shared preferences. The stored value is an integer color with alpha component (as used throughout Android). To access the saved color in this example (with the same default)...
PreferenceManager.getDefaultSharedPreferences(context).getInt("simplePreference", 0xffff0000);
The support library preferences require your app to invoke the color picker dialog in your preference fragment's onDisplayPreferenceDialog() function: If the preference is a ColorPreference, call its showDialog() function...
public void onDisplayPreferenceDialog(Preference preference) {
if (preference instanceof ColorPreference) {
((ColorPreference) preference).showDialog(this, 0);
} else super.onDisplayPreferenceDialog(preference);
}
Note: If upgrading from version 2, the above Java snippet is a new requirement in your application.
See the [demo source](demo_app/src/main/java/com/rarepebble/colorpickerdemo/MainActivity.java) for more context.
XML Preference Attributes
The standard preference attributes apply as normal, including defaultValue, which can be a hex color, as in the example above, or a reference to a color defined elsewhere.
In addition, the following custom attributes may be used. They should be prefixed with the namespace used for res-auto, as in the example below.
colorpicker_selectNoneButtonText
If set, this text will appear on a third button on the color picker dialog. This resets the color setting to the defaultValue if set. If there is no defaultValue, any saved color setting is removed. Apps can use this to implement "no color selected" logic. Use SharedPreference.contains("myOptionalColorKey") to test for that.
colorpicker_noneSelectedSummaryText
This text displays as the preference summary text if no color has been selected.
colorpicker_showAlpha
Set this to false to hide the alpha slider.
colorpicker_showHex
Set this to false to hide the hex value field.
colorpicker_showPreview
Set this to false to hide the color preview field.
Note: colorpicker_defaultColor was removed in version 2, in favour of android:defaultValue. If upgrading, just switch to using android:defaultValue instead.
<PreferenceScreen
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto">
<com.rarepebble.colorpicker.ColorPreference
android:key="myOptionalColor"
android:title="@string/pref_optional_color"
app:colorpicker_selectNoneButtonText="@string/no_color"
app:colorpicker_noneSelectedSummaryText="@string/no_color_selected"
/>
</PreferenceScreen>
There are further examples in the demo app.
ColorPickerView Usage
In many cases, the ColorPreference will be all that's needed, but if you wish to use the ColorPickerView directly, it can be constructed like any other view, either in code or in XML. Set the initial color with setColor() and retrieve the view's current color with getColor():
final ColorPickerView picker = new ColorPickerView(getContext());
picker.setColor(0xff12345);
...
final int color = picker.getColor();
Refer to the [ColorPreference source](colorpicker/src/main/java/com/rarepebble/colorpicker/ColorPreference.java?ts=4) for a fuller example.
XML View Attributes
The custom attributes below should be prefixed with the namespace used for res-auto, just like the preference attributes. See the [view demo source](demo_app/src/main/res/layout/view_demo.xml) for an example.
colorpicker_showAlpha
Set to false to hide the alpha slider. (Default is visible.)
colorpicker_showHex
Set to false to hide the hex value field. (Default is visible.)
colorpicker_showPreview
Set to false to hide the color preview field. (Default is visible.)
ColorPickerView methods
public int getColor()
Gets the current color.
public void setColor(int color)
Sets the original color swatch and the current color to the specified value.
public void setColor(int alpha, float hue, float sat, float bri)
Sets the original color swatch and the current color to the specified values.
public void setOriginalColor(int color)
Sets the original color swatch without changing the current color.
public void setOriginalColor(int alpha, float hue, float sat, float bri)
Sets the original color swatch without changing the current color.
public void setCurrentColor(int color)
Updates the current color without changing the original color swatch.
public void setCurrentColor(int alpha, float hue, float sat, float bri)
Updates the current color without changing the original color swatch.
public void showAlpha(boolean showAlpha)
Shows or hides the alpha slider.
public void showHex(boolean showHex)
Shows or hides the hex value field.
public void showPreview(boolean showPreview)
Shows or hides the color preview field.
public void addColorObserver(ColorObserver observer)
Allows an object to receive notifications when the color changes.
Bugs
Please report bugs in the GitHub issue tracker.
License
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.
*Note that all licence references and agreements mentioned in the hsv-alpha-color-picker-android README section above
are relevant to that project's source code only.