Hi all!
I recently installed B4A version 13.7 and have a question regarding a non-B4XPages application. When I open the app on a Samsung S23+, the status bar is almost invisible and the icons are white. See Screen1. Is it possible to change the color of these icons or make them more visible? I mean - is it possible to change the color of these 3 icons to black to make them look like on screen2?
I need to keep the system bar background white.
This is my manifest
Thank you.
I recently installed B4A version 13.7 and have a question regarding a non-B4XPages application. When I open the app on a Samsung S23+, the status bar is almost invisible and the icons are white. See Screen1. Is it possible to change the color of these icons or make them more visible? I mean - is it possible to change the color of these 3 icons to black to make them look like on screen2?
I need to keep the system bar background white.
This is my manifest
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="9" android:targetSdkVersion="36"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
SetApplicationAttribute(android:usesCleartextTraffic, "true")
SetApplicationAttribute(android:allowBackup, "false")
'CreateResourceFromFile(Macro, Themes.LightTheme)
'Non-SSL permission
CreateResourceFromFile(Macro, Core.NetworkClearText)
'End of default text.
'AddPermission (android.permission.WRITE_EXTERNAL_STORAGE)
'AddPermission (android.permission.READ_EXTERNAL_STORAGE)
' FusedLocationProvider:
' required manifest entry required for Google Play Services
AddApplicationText(<meta-data
android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />)
SetActivityAttribute(MessageDetails, android:windowSoftInputMode, adjustPan|stateHidden)
'Firebase
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile(Macro, FirebaseAnalytics.Firebase)
CreateResourceFromFile(Macro, FirebaseNotifications.FirebaseNotifications)
CreateResourceFromFile(Macro, FirebaseAnalytics.Crashlytics)
AddPermission(com.google.android.gms.permission.AD_ID)
'34
'AddPermission(android.permission.FOREGROUND_SERVICE_REMOTE_MESSAGING)
'SetServiceAttribute(FirebaseMessaging, android:foregroundServiceType, "remoteMessaging") - Service
'SetServiceAttribute(Starter, android:foregroundServiceType, "remoteMessaging") 'Receiver
'36
'SetApplicationAttribute(android:enableOnBackInvokedCallback, "false")
SetApplicationAttribute(android:enableOnBackInvokedCallback, "true")
'
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, colors.xml,
<resources>
<color name="actionbar">@android:color/transparent</color>
</resources>
)
CreateResource(values, theme.xml,
<resources>
<style name="LightTheme" parent="@android:style/Theme.Material.Light">
<item name="android:colorPrimary">@color/actionbar</item>
<item name="android:windowActionBarOverlay">true</item>
</style>
</resources>
)
Thank you.
Attachments
Last edited: