Skip to content
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

Init pos or color save #19

Closed
tombed631 opened this issue Nov 27, 2018 · 2 comments
Closed

Init pos or color save #19

tombed631 opened this issue Nov 27, 2018 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@tombed631
Copy link

ColorPickerReferenence does not have Sliders (what i need is BrightnessSlider) so can you add to this projekct initPosition methods? I see only in init() setCenter() call... But it would be needed setter with params to set initial position...

I need both of saving colors and brithnessSlider. Im looking forward for your reply.

@dtboy1995
Copy link

#8

@skydoves
Copy link
Owner

@tombed631 @dtboy1995
Hi, sorry for late reply.
It's released v2.1.0
You can save & restore all of the ColorPickerView data like this :

colorPickerView.setPreferenceName("MainColorPickerView"); // sets the preference name.  This restores the stored date.
colorPickerView.setLifecycleOwner(this); // saves all of the ColorpickerView data when the lifecycleOwner's onDestroy method called automatically.

or you can save data manually

ColorPickerPreferenceManager.getInstance(this).saveColorPickerData(colorPickerView);

Thank you!

@skydoves skydoves added the enhancement New feature or request label Jan 25, 2019
@skydoves skydoves self-assigned this Jan 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants