java.lang.Object | ||
↳ | net.pierrox.lightning_launcher.prefs.LLPreference | |
↳ | net.pierrox.lightning_launcher.prefs.LLPreferenceColor |
This preference is used to manage a color. It will display a color preview and a color picker when clicked.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
LLPreferenceColor(int id, String title, String summary, int color, Integer default_color, boolean has_alpha)
Create a new color preference
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getColor()
Return the currently selected color.
| ||||||||||
boolean |
hasAlpha()
Return true is this preference allows alpha configuration
| ||||||||||
void |
setColor(int color)
Set this preference color.
| ||||||||||
void |
setDefaultColor(int color)
Set this preference default color.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.pierrox.lightning_launcher.prefs.LLPreference
| |||||||||||
From class
java.lang.Object
|
Create a new color preference
id | a unique number to identify the preference, use 0 if unused. |
---|---|
title | Displayed title. |
summary | Displayed summary, use null for none. |
color | Color for the preference as a 32 bits ARGB value. |
default_color | Default color if displaying the override checkbox. Use null if unused. |
has_alpha | true to allow transparency setting |
Return the currently selected color.
Return true is this preference allows alpha configuration
Set this preference color.
color | a 32 bits ARGB value |
---|
Set this preference default color.
color | a 32 bits ARGB value |
---|