ActionBarImplBase can only be used with a compatible window decor layout
On 6 November 2014 in TechActionBarImplBase can only be used with a compatible window decor layout
This error occured in android 2.3 if you’re trying to use ActionBar feature on theme that disable ActionBar
Let’s say you define a style that enable actionbar overlay mode
<style name="MyTheme" parent="Theme.AppCompat"> <item name="android:windowActionBarOverlay">true</item> <item name="windowActionBarOverlay">true</item> </style>
Then one style extends this base style, but disable the actionbar
<style name="MyDifferentTheme" parent="MyTheme"> <item name="android:windowActionBar">false</item> <item name="windowActionBar">false</item> </style>
This will cause the crash. To fix it, the new style either need to extend different parent style, or disable the actionbar feature
<style name="MyDifferentTheme" parent="MyTheme"> <item name="android:windowActionBar">false</item> <item name="windowActionBar">false</item> <item name="android:windowActionBarOverlay">false</item> <item name="windowActionBarOverlay">false</item> </style>
Related posts:
-
Android Lollipop Wallpapers
-
Titanium Android keystore
-
Method calling thread for Titanium module (Android)
-
Titanium ListView
-
Titanium Studio unbound classpath container error
-
Setup Titanium Studio environment for developing Titanium module (Android) on Windows
-
Titanium app hex color value with alpha channel
-
Webview evalJS return null in Android 4.2.2
-
Restart ADB
-
Android BOOT_COMPLETED handler module
Filed under Tech with tags ActionBar, Android, Java
Leave a Reply