Coder Social home page Coder Social logo

Comments (10)

martin-stone avatar martin-stone commented on August 15, 2024

Are you returning false from your onPreferenceChange() function? That (correctly) causes the color not to update for me.

from hsv-alpha-color-picker-android.

versoworks avatar versoworks commented on August 15, 2024

It's returning true always.
I resolved the issue by adding a PreferenceCategory. It appears if the ColorPreference is the first item, the thumbnail does not update.

from hsv-alpha-color-picker-android.

martin-stone avatar martin-stone commented on August 15, 2024

I pasted your XML into the demo app and everything works correctly for me. If you want a proper fix, I'll need more information and/or code. (Or even better, a pull request :-)

from hsv-alpha-color-picker-android.

raffaeu avatar raffaeu commented on August 15, 2024

I have the same exact issue.
This is how I declare the Color Picker

        <com.rarepebble.colorpicker.ColorPreference
            android:icon="@drawable/ic_format_color_fill_white_24dp"
            android:key="racer.accent"
            android:title="Accent Color"
            android:summary="Set the Watchface accent color."
            app:colorpicker_defaultColor="#f00"/>

With or without a Category the Thumbnail does not update but I can confirm that the preference is changed.

from hsv-alpha-color-picker-android.

martin-stone avatar martin-stone commented on August 15, 2024

Can you confirm that you're using the latest version of the library (1.6.0)? Also, what Android version(s) do you see it on? Does it happen on the emulator?

from hsv-alpha-color-picker-android.

raffaeu avatar raffaeu commented on August 15, 2024

Yes I am using the latest version on android 5.1.1 and 6.0
It happens on Nexus 6, Samsung s5 and virtual devices
On 25 Jan 2016 21:23, "Martin Stone" [email protected] wrote:

Can you confirm that you're using the latest version of the library
(1.6.0)? Also, what Android version(s) do you see it on? Does it happen on
the emulator?


Reply to this email directly or view it on GitHub
#17 (comment)
.

from hsv-alpha-color-picker-android.

martin-stone avatar martin-stone commented on August 15, 2024

Hmm. Working for me on 5.1.1 emulator (and all my other devices). Are you building the library locally or using the jcenter version? What are your target version and min sdk version? Any other relevant setup you can think of?

Maybe you could debug the library locally and put a breakpoint in ColorPreference.showColor() and see what's going on.

from hsv-alpha-color-picker-android.

raffaeu avatar raffaeu commented on August 15, 2024

I am using jcenter but I was considering to fork git and debug it.
Min sdk is 16
On 25 Jan 2016 9:58 pm, "Martin Stone" [email protected] wrote:

Hmm. Working for me on 5.1.1 emulator (and all my other devices). Are you
building the library locally or using the jcenter version? What are your
target version and min sdk version? Any other relevant setup you can think
of?

Maybe you could debug the library locally and put a breakpoint in
ColorPreference.showColor() and see what's going on.


Reply to this email directly or view it on GitHub
#17 (comment)
.

from hsv-alpha-color-picker-android.

martin-stone avatar martin-stone commented on August 15, 2024

Well, I'm out of ideas here. If you could investigate with a debugger, that would be helpful.

from hsv-alpha-color-picker-android.

raffaeu avatar raffaeu commented on August 15, 2024

I'll give it a shot and try to understand why it does not update the
activity
On 25 Jan 2016 10:04 pm, "Martin Stone" [email protected] wrote:

Well, I'm out of ideas here. If you could investigate with a debugger,
that would be helpful.


Reply to this email directly or view it on GitHub
#17 (comment)
.

from hsv-alpha-color-picker-android.

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.