Hi:
I want to share this B4A configuration, usefull when you have to code an app that needs appcompat library (for example, NumberMorphView from Johan Schoeman) but you don't need the action bar and don't want to appear on app launching windows (see http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ thanks to corwin32)
I've lost a lot of time before find this searching on forum & Internet; maybe is trivial but I want to share to spare time for all
My scenary is Android SDK 23
1)
2) Add to manifest:
3) Normally, when using such libraries, it needs own resources so this line must be attached on code:
3) Create style.xml file on \Resource\values with this content: (or with another Appcompat theme with no Action Bar)
When you run your app with this instructions, action bar will not display on your activity (nor in the app launching process)
I want to share this B4A configuration, usefull when you have to code an app that needs appcompat library (for example, NumberMorphView from Johan Schoeman) but you don't need the action bar and don't want to appear on app launching windows (see http://cyrilmottier.com/2013/01/23/android-app-launching-made-gorgeous/ thanks to corwin32)
I've lost a lot of time before find this searching on forum & Internet; maybe is trivial but I want to share to spare time for all
My scenary is Android SDK 23
1)
B4X:
#Region Activity Attributes
#FullScreen: True
#IncludeTitle: false
#End Region
2) Add to manifest:
B4X:
SetApplicationAttribute(android:theme, "@style/AppTheme")
3) Normally, when using such libraries, it needs own resources so this line must be attached on code:
B4X:
#AdditionalRes: ..\Resource
3) Create style.xml file on \Resource\values with this content: (or with another Appcompat theme with no Action Bar)
B4X:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="AppTheme" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowNoTitle">true</item>
<item name="android:windowActionBar">false</item>
<item name="android:windowFullscreen">true</item>
<item name="android:windowContentOverlay">@null</item>
</style>
</resources>
When you run your app with this instructions, action bar will not display on your activity (nor in the app launching process)
Last edited: