E edgar_ortiz Active Member Licensed User Longtime User Oct 31, 2014 #1 Hi, In my apk, the user can change the font color... so sometimes the color of a label is equal to the background color. how I can find out the background color of a label? Any help es welcome. Thanks in advance, Edgar
Hi, In my apk, the user can change the font color... so sometimes the color of a label is equal to the background color. how I can find out the background color of a label? Any help es welcome. Thanks in advance, Edgar
A attenzi0ne Member Licensed User Longtime User Oct 31, 2014 #2 Take a look at this thread http://www.b4x.com/android/forum/threads/reading-color-attribute-of-button.8180/ Upvote 0
Take a look at this thread http://www.b4x.com/android/forum/threads/reading-color-attribute-of-button.8180/
E edgar_ortiz Active Member Licensed User Longtime User Oct 31, 2014 #3 attenzi0ne said: Take a look at this thread http://www.b4x.com/android/forum/threads/reading-color-attribute-of-button.8180/ Click to expand... Thanks for your time... the problem that I found is label.color is WRITE ONLY... the problem is: I can not determine which is the background color on a label I found a nice post http://www.b4x.com/android/forum/threads/getting-the-contrast-color-for-a-label-etc.26026/ but this no apply to a label Again, Thanks for your time. Any help is welcome Edgar Upvote 0
attenzi0ne said: Take a look at this thread http://www.b4x.com/android/forum/threads/reading-color-attribute-of-button.8180/ Click to expand... Thanks for your time... the problem that I found is label.color is WRITE ONLY... the problem is: I can not determine which is the background color on a label I found a nice post http://www.b4x.com/android/forum/threads/getting-the-contrast-color-for-a-label-etc.26026/ but this no apply to a label Again, Thanks for your time. Any help is welcome Edgar
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2014 #4 The default color is Color.Transparent. Upvote 0
LucaMs Expert Licensed User Longtime User Oct 31, 2014 #5 Erel said: The default color is Color.Transparent. Click to expand... Yes, but you could change it via Designer and might want to get it by code. Can you achieve it using the Reflection (GetColor)? Upvote 0
Erel said: The default color is Color.Transparent. Click to expand... Yes, but you could change it via Designer and might want to get it by code. Can you achieve it using the Reflection (GetColor)?
Erel B4X founder Staff member Licensed User Longtime User Oct 31, 2014 #6 LucaMs said: Can you achieve it using the Reflection Click to expand... No. Because the color is not a simple property. It sets a new drawable object when you change it. Upvote 0
LucaMs said: Can you achieve it using the Reflection Click to expand... No. Because the color is not a simple property. It sets a new drawable object when you change it.
LucaMs Expert Licensed User Longtime User Oct 31, 2014 #7 Erel said: No. Because the color is not a simple property. It sets a new drawable object when you change it. Click to expand... Thanks Upvote 0
Erel said: No. Because the color is not a simple property. It sets a new drawable object when you change it. Click to expand... Thanks