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

Initilize ColorPickerView #8

Closed
ShubhamSoni opened this issue Dec 6, 2017 · 4 comments
Closed

Initilize ColorPickerView #8

ShubhamSoni opened this issue Dec 6, 2017 · 4 comments

Comments

@ShubhamSoni
Copy link

I am trying to use ColorPickerView to pick colors and save it to preference. Next time when I open the selector activity I want it to show previously saved color. I am not sure how this can be done when we do not have any API that allows to initialize ColorPickerView.

@skydoves
Copy link
Owner

skydoves commented Dec 6, 2017

Your meaning of "initialize ColorPickerView" is initializing selector's position?

@ShubhamSoni
Copy link
Author

No not the selection position but, with an initial color. I think it is not possible as a palette can be changed. What I was looking for was a way to set a color value. For example last time I picked #FF00FF color and closed the picker and saved the value to a preference. Now when I open the app again I read the color value and set it to picket again but, I think that I'll need to store the point and set it on picker on startup.

@skydoves
Copy link
Owner

skydoves commented Feb 12, 2018

I published ColorPickerPreference.
This library lets saving and restoring selector's position, a selected color before.

@skydoves
Copy link
Owner

#19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants