-
-
Notifications
You must be signed in to change notification settings - Fork 210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add initColor method #53
Labels
Comments
Hi, @Lasicaine! colorPickerView.post(new Runnable() {
@Override public void run() {
try {
selectByHsvColor(color);
} catch (IllegalAccessException e) {
e.printStackTrace();
}
}
}); |
Great! Thank you! |
Hi, @Lasicaine ! |
Hi, @rolud ColorPickerView colorPickerView = builder.getColorPickerView();
// set an initial position of the selector using a specific color. This attribute will work with only a default HSV palette.
colorPickerView.setInitialColor(color); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Hello! Could you please add initColor method for ColorPickerDialog builder's for initialize set start color for ColorPickerView?
For example:
new ColorPickerDialog.Builder(this)
.setTitle("ColorPicker Dialog")
.setPreferenceName("MyColorPickerDialog")
.setPositiveButton(getString(R.string.confirm),
new ColorEnvelopeListener() {
@OverRide
public void onColorSelected(ColorEnvelope envelope, boolean fromUser) {
setLayoutColor(envelope);
}
})
.setNegativeButton(getString(R.string.cancel),
new DialogInterface.OnClickListener() {
@OverRide
public void onClick(DialogInterface dialogInterface, int i) {
dialogInterface.dismiss();
}
})
.attachAlphaSlideBar(true) // the default value is true.
.attachBrightnessSlideBar(true) // the default value is true.
.setBottomSpace(12) // set a bottom space between the last slidebar and buttons.
.setInitColor(here color in Int or Hex) // This method is neeeded for set initialize color. <------------
.show();
The text was updated successfully, but these errors were encountered: