Giter Site home page Giter Site logo

Comments (4)

kj800x avatar kj800x commented on August 20, 2024

This is a major issue that I'm also experiencing.

from holocolorpicker.

kj800x avatar kj800x commented on August 20, 2024

I've looked into the suggestion buttairfly gave, but that just delegates the event triggering to the bars (0 bars = 0 events, 1 bar = 1 event, 2 bars = 2 events). A better way to approach the problem would be for the colorpicker to ask the bars for their values, and use that to calculate the new color, and then only the colorpicker should be allowed to trigger the event. I'm working on a pull request for this.

from holocolorpicker.

jlarysz avatar jlarysz commented on August 20, 2024

I can't get this color picker to work in Android IDE 1.5. I'm stuck on a duplicate class in the build:

Execution failed for task ':app:transformClassesWithJarMergingForDebug'.

com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/larswerkman/holocolorpicker/ColorPicker$OnColorChangedListener.class

and I can't find it. I've been looking all day - I think I have to try another color picker.

from holocolorpicker.

holgi-s avatar holgi-s commented on August 20, 2024

Using the 1.5 version I also noticd that when using a SVBar the onColorChanged is triggered twice, and the 1st event actually contains the wrong color.

In ColorPicker.onTouchEvent()
1st event on line 631:
setNewCenterColor(mCenterNewColor = calculateColor(mAngle));
with the color of the circle, not respecting saturation and value

2nd event on line 646:
mSVbar.setColor(mColor);
this time with the correct color

from holocolorpicker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.