J jgcote Member Licensed User Longtime User Dec 31, 2011 #1 Can you make the color readable on objects like spinner If spinner1.color = Colors.Yellow Gives a compile error Error description: Property: Color is writeonly.
Can you make the color readable on objects like spinner If spinner1.color = Colors.Yellow Gives a compile error Error description: Property: Color is writeonly.
Erel B4X founder Staff member Licensed User Longtime User Jan 1, 2012 #2 This is more complicated than it may sound. When you set the Color property you are actually create a ColorDrawable and then set it as the background drawable. Views doesn't have a separate color field. A simple solution is to store the color in the Tag property.
This is more complicated than it may sound. When you set the Color property you are actually create a ColorDrawable and then set it as the background drawable. Views doesn't have a separate color field. A simple solution is to store the color in the Tag property.
J jgcote Member Licensed User Longtime User Jan 6, 2012 #3 Surely you can query the color value of an object. VB does it well. If not then your suggestion may work... Thanks
Surely you can query the color value of an object. VB does it well. If not then your suggestion may work... Thanks
barx Well-Known Member Licensed User Longtime User Jan 6, 2012 #4 This will be more an android os problem not the way Basic4Android operates. Sent from my HTC Vision using Tapatalk
This will be more an android os problem not the way Basic4Android operates. Sent from my HTC Vision using Tapatalk