Android Question Cannot alter EditField Hint Text Color

ralvy

Member
Licensed User
Working on the MyFirstProject project in the Beginners Guide. I changed the Activity background object to be white. Given that change, I changed, among other things, the Hint Text Color for the EditTextField to Black. This seems to have no effect on the compiled app.

I zipped up the project and uploaded it here, assuming that's what you'd want to see.
 

Attachments

  • MyFirstProgram.zip
    355.4 KB · Views: 158

Erel

B4X founder
Staff member
Licensed User
Longtime User
Note that you should use File - Export as zip when uploading projects.

It is better to keep the default colors and change the theme to a light theme. It is done with this manifest editor code:

B4X:
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values-v20, theme.xml,
<resources>
  <style
  name="LightTheme" parent="@android:style/Theme.Material.Light">
  </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
  <style
  name="LightTheme" parent="@android:style/Theme.Holo.Light">
  </style>
</resources>
)
 
Upvote 0

ralvy

Member
Licensed User
Ok. That works. Thank you. It seems that the EditTextField Hint Text Color is ignored and the theme prevails.
 
Upvote 0
Top