Android Example AppCompat with ToolBar - minimal example

Status
Not open for further replies.

Erel

B4X founder
Staff member
Licensed User
Longtime User
Updated first example with targetSdkVersion 35. The updated manifest:
B4X:
SetApplicationAttribute(android:theme, "@style/MyAppTheme")

CreateResource(values, theme.xml,
<resources>
    <style name="MyAppTheme" parent="Theme.AppCompat.Light.NoActionBar">
        <item name="colorPrimary">#0098FF</item>
        <item name="colorPrimaryDark">#007CF5</item>
        <item name="colorAccent">#AAAA00</item>
        <item name="windowNoTitle">true</item>
        <item name="windowActionBar">false</item>
        <item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
    </style>
</resources>
)
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…