Comments (10)
Are you returning false
from your onPreferenceChange()
function? That (correctly) causes the color not to update for me.
from hsv-alpha-color-picker-android.
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.
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.
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.
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.
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.
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.
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.
Well, I'm out of ideas here. If you could investigate with a debugger, that would be helpful.
from hsv-alpha-color-picker-android.
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)
- getColor() doesn't always return latest value HOT 2
- After hex value is deleted, color changes to transparent even though colorpicker_showAlpha is set to false HOT 2
- ColorPreference: read from disk on UI thead HOT 2
- When creating ColorPreference programmatically defaultValue not works HOT 2
- Impossible to use the library on android P HOT 1
- defaultValue does not work anymore on older devices HOT 4
- public constructor for ObservableColor HOT 2
- Setting color with low brightness leads to different colors HOT 3
- Default button sets a wrong color 888888 HOT 9
- java.lang.ClassCastException: com.rarepebble.colorpicker.ColorPreference cannot be cast to androidx.preference.Preference HOT 3
- modification of the demo app
- Migrate to AndroidX HOT 1
- Dark Theme how to implement HOT 3
- Non-SharedPreference based projects HOT 1
- Question: Use of Enter key to confirm HEX colour change
- jcenter() HOT 12
- Colors not displaying properly with darkmode HOT 2
- Add support for PreferenceDataStore HOT 2
- Infrequent Crashing with Resources$NotFoundException HOT 1
- Large default values not working HOT 5
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 hsv-alpha-color-picker-android.