Android Question EditText in CustomView has a different back color

falbertini

Member
Licensed User
Longtime User
Hello,
I've got an edittext in a custom view, that I need to be with the same style of the other edit text.
In the previous versions everything was running well; but after setting the new target sdk version to 26 in order to update the apk in the Google Play Store, the background color is different (white instead of gray).
How can I solve this? I've searched in the forum, but with no luck

Attached you can find a sample to reproduce the problem
 

Attachments

  • TestCustomView.zip
    4.2 KB · Views: 174

Mahares

Expert
Licensed User
Longtime User
the background color is different (white instead of gray).
Did you try to change the theme in the manifest: From
B4X:
CreateResourceFromFile(Macro, Themes.LightTheme)
To:
B4X:
CreateResourceFromFile(Macro, Themes.DarkTheme)
You may also have to change the text color as an example: edt.TextColor=Colors.Red
 
Upvote 0
Top