Android Code Snippet Change the action bar height

Erel

Administrator
Staff member
Licensed User
1600323727222.png


Add to manifest editor:
B4X:
SetApplicationAttribute(android:theme, "@style/LightTheme")
CreateResource(values, theme.xml,
<resources>
    <style name="LightTheme" parent="@android:style/Theme.Material.Light">
         <item name="android:actionBarSize">40dp</item>
    </style>
</resources>
)
Remove:
B4X:
CreateResourceFromFile(Macro, Themes.DarkTheme) 'or LightTheme
 
Top