Android Question White Text on White Background in Messages

Frank Cazabon

Member
Licensed User
Longtime User
I've been updating an old app written in B4A 5 many years ago. The main issue right now is the colors of things. I had set the backcolor of various panels to different screens to try and help the user recognise easily where they were. Most everything else I left their color as Default. This resulted in things being invisible for example when black text was shown on a black background. I've sorted all of those out but all of a sudden my MsgBox2 dialogs have white text on a white background! I'm not sure what I've changed. I have tried changing a couple of them to use MsgBox2Async but that hasn't helped.

Any ideas?
 
Solution
Back to B4A then version, Android is using Dark theme.
Now, we are using Light theme by default.

Go to menu Project -> Manifest Editor, you will see:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro...

aeric

Expert
Licensed User
Longtime User
Back to B4A then version, Android is using Dark theme.
Now, we are using Light theme by default.

Go to menu Project -> Manifest Editor, you will see:
B4X:
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: https://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="5" android:targetSdkVersion="33"/>
<supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
CreateResourceFromFile(Macro, Themes.LightTheme)
'End of default text.
 
Upvote 0
Solution

Frank Cazabon

Member
Licensed User
Longtime User
Thanks. It turned out that I had been experimenting with themes, thinking that would help me, and had added in

SetApplicationAttribute(android:theme, "@style/LightTheme")

to the manifest. Getting rid of it has set the messages back to displaying properly.

Thanks!
 
Upvote 0
Top