I posted in the v3.20 BETA thread about the EditText not having its Color property available in the designer, so only being able to set the background color in code. Erel's reply was:
At first I thought my problem with this is the way the EditText is displayed on different devices (or more likely, different Android versions). For example, on my Galaxy S3 (Android v4.3) EditTexts show up with a black background by default, but on my Nexus 7 (Android v4.4.2), the EditText background seems to be transparent. I thought this was an issue because if I use black text, then I can't see it on the Galaxy & if I use white text, then it doesn't show up on the Nexus if the EditText is on a white panel. "Easy" you say, "Just use the DEFAULT text color" - well read on...
I discovered that using DEFAULT text color (with the EditText on a white panel) works fine on the Galaxy (where the EditText background is black). However on the Nexus (where the EditText background is white), I have found what I think is a bug:
If the EditText is disabled (.Enabled = False), the text shows as black (or perhaps dark gray), however when I enable the EditText (.Enabled = True), the text color changes to the background color of the EditText - so is now not visible. This is the case whether the EditText is being edited or not.
If you look at the images you'll see what I mean:
Thanks - Colin.
It is not possible to change the EditText color. You can do it with code but it will remove the nice background. The EditText background is actually a nine patch image.
At first I thought my problem with this is the way the EditText is displayed on different devices (or more likely, different Android versions). For example, on my Galaxy S3 (Android v4.3) EditTexts show up with a black background by default, but on my Nexus 7 (Android v4.4.2), the EditText background seems to be transparent. I thought this was an issue because if I use black text, then I can't see it on the Galaxy & if I use white text, then it doesn't show up on the Nexus if the EditText is on a white panel. "Easy" you say, "Just use the DEFAULT text color" - well read on...
I discovered that using DEFAULT text color (with the EditText on a white panel) works fine on the Galaxy (where the EditText background is black). However on the Nexus (where the EditText background is white), I have found what I think is a bug:
If the EditText is disabled (.Enabled = False), the text shows as black (or perhaps dark gray), however when I enable the EditText (.Enabled = True), the text color changes to the background color of the EditText - so is now not visible. This is the case whether the EditText is being edited or not.
If you look at the images you'll see what I mean:
Thanks - Colin.