Comments (6)
It is possible to set Gray Colors in a recent update I added a Saturation Bar and a Value Bar which can complement each other in making gray color, as you can see in the readme file the second photo it has the saturation bar and value bar. if the saturation bar is set to white the value bar can make every gray color.
from holocolorpicker.
Thank you. I've implemented the value and saturation bar instead of the svBar, and it's now possible to get a gray color out of the picker, thanks.
An issue still remains though, I've added an EditText to the picker which displays the hex code of the color, and gives the user the ability to type in a hex code manually, which the color picker then previews, via picker.setColor(). However, this has a couple of problems. I use the setColor() like this:
String hex = "#5511AA"
picker.setColor(Color.parseColor(hex));
In the onColorChanged() method, I update the EditText's text with the hex code of the color of the picker (like this: int colorInt = picker.getColor(); ). But the Color Picker has changed the color a bit, i get the same visual result, but the hex code changes, in this case to #4C00AA. It's pretty much the same color, but the changing of the hex code is gonna confuse users. Why does this happen, and how to fix it?
Second issue: When try setting the color picker to a gray color, with the hex code of say #666666, this changes to #660000. But the weird part is that the markers or dots on the saturation bar and value bar, are in the exact right position to choose this color, but somehow they aren't taking effect. If just slides the markers back and forth to the same position, i get the gray color of #666666.
from holocolorpicker.
I have to check to check the errors, the first error occurs because the setColor method isn't perfect and should need some work. for the second error i know why this is happening, its because i think i forgot to implement the setColor for the saturation and value bar because i was in a hurry to make it!.
Although these errors don't take to long to fix I don't have time for a few weeks. I try to fix it as soon as possible, but if you feel like helping out, that would be great ofcourse :)
from holocolorpicker.
Okay, I think I will give it a try, but I'm still new in developing so i'm not expecting much success. But thank you for your answer, and your work. Really appreciate it.
from holocolorpicker.
I fixed the problem when you tried to set the gray color!
from holocolorpicker.
Thank you very much
On Apr 13, 2013 3:35 PM, "Lars Werkman" [email protected] wrote:
I fixed the problem when you tried to set the gray color!
β
Reply to this email directly or view it on GitHubhttps://github.com//issues/16#issuecomment-16333193
.
from holocolorpicker.
Related Issues (20)
- Taps don't trigger a color change, yet they move the pointer. HOT 1
- Color selection to string HOT 4
- Bar orientation HOT 2
- How can i set the SaturationBar and OpacityBar?
- can not disable the view HOT 1
- About bit HOT 1
- Mirror bars
- Can this libarary add activity call and color result when user select color?
- Can this library pick up color from a circle/ring image HOT 1
- Is it possible to select white as color? HOT 1
- No OnColorSelectedListener-event on SVBar
- Could you please make a release tag?
- How do I use this in my android studio project. I'm new to android studio.
- SaturationBar not properly picking up Value HOT 6
- HoloPicker Size parameters not in documentation
- Will HoloColorPicker design yield less possible color choice than a solid full circle? HOT 2
- This library has a lot of bugs but...
- How to use OnClickListener for Colorpicker HOT 1
- Make focusable as for TV layer
- Γ§isa
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from holocolorpicker.