Hi, Im trying to use the manifest to change the title background as Erel shows in https://www.b4x.com/android/forum/threads/theme-colors.87716/
Ive copied the manifest lines to my manifest and compile and nothing happens, then reading the manifest I realized that I have another theme setting that comes from the biometric manifest modification, I think its overriden the first one.
Then I tried deleting the biometric theme lines but when the app runs it halts.
How to solve this?
This is my manifest:
Ive copied the manifest lines to my manifest and compile and nothing happens, then reading the manifest I realized that I have another theme setting that comes from the biometric manifest modification, I think its overriden the first one.
Then I tried deleting the biometric theme lines but when the app runs it halts.
How to solve this?
This is my manifest:
'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: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="17" android:targetSdkVersion="30"/>
<supports-screens android:largeScreens="true"
android:xlargeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:versionCode="1"
android:versionName="2"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'SetApplicationAttribute(android:theme, "@android:style/Theme:Holo")
'End of default text.
AddManifestText(
<uses-feature android:name="android.hardware.telephony"
android:required="false" />)
AddPermission(android.permission.READ_PHONE_STATE)
AddPermission(android.permission.WRITE_EXTERNAL_STORAGE)
'Theme
'SetApplicationAttribute(android:theme, "@android:style/Theme.Holo.Light")
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, colors.xml,
<resources>
<color name="actionbar">#FFF4C961</color>
<color name="statusbar">#FFF7B207</color>
<color name="textColorPrimary">#FF000000</color>
<color name="navigationBar">#FFF4C961</color>
</resources>
)
CreateResource(values-v20, theme.xml,
<resources>
<style name="LightTheme" parent="@android:style/Theme.Material.Light">
<item name="android:colorPrimary">@color/actionbar</item>
<item name="android:colorPrimaryDark">@color/statusbar</item>
<item name="android:textColorPrimary">@color/textColorPrimary</item>
<item name="android:navigationBarColor">@color/navigationBar</item>
</style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
<style name="LightTheme" parent="@android:style/Theme.Holo.Light">
<item name="android:actionBarStyle">@style/CustomActionBarStyle</item>
</style>
<style name="CustomActionBarStyle" parent="@android:style/Widget.Holo.Light.ActionBar.Solid.Inverse">
<item name="android:background">@color/actionbar</item>
</style>
</resources>
)
'biometric
AddPermission(android.permission.USE_BIOMETRIC)
AddPermission(android.permission.USE_FINGERPRINT)
SetApplicationAttribute(android:theme, "@style/MyAppTheme")
CreateResource(values, theme.xml,
<resources>
<style name="MyAppTheme" parent="Theme.AppCompat.Light">
</style>
</resources>
)
'FirebaseAdmob2
CreateResourceFromFile(Macro, FirebaseAnalytics.GooglePlayBase)
CreateResourceFromFile (Macro, FirebaseAdMob.FirebaseAds)
AddReplacement($ADMOB_APP_ID$, ca-app-pub-9803933366182977~6328973890)
SetApplicationAttribute(android:usesCleartextTraffic, "true")
'Billing
CreateResourceFromFile(Macro, GooglePlayBilling.GooglePlayBilling)