Steps to Reproduce
Create an Android Application and use method 2 of this guide
http://www.appcelerator.com/blog/2014/08/hiding-the-android-actionbar/.
If you compile with SDK 3.5.1.GA all works fine, if you compile with SDK 4.0.0.Beta2 ActionBar is still present
I'm attaching two screenshots of the same app compiled with both version. In the screenshots you can see Android Action Bar in BLACK and the RED one is a widget.
This is the Custome Theme used:
<?xml version='1.0' encoding='utf-8'?>
<resources>
<style name='Theme.NoActionBar' parent='@style/Theme.AppCompat'>
<item name='android:windowActionBar'>false</item>
<item name='android:windowNoTitle'>true</item>
</style>
</resources>
This is the Android Manifest (used by TiApp.xml)
<android xmlns:android='http://schemas.android.com/apk/res/android'>
<manifest android:installLocation='auto' android:versionCode='1' android:versionName='1.0.0'>
<supports-screens android:anyDensity='true'
android:largeScreens='true' android:normalScreens='true'
android:smallScreens='false' android:xlargeScreens='true'/>
<uses-sdk android:minSdkVersion='14' android:targetSdkVersion='21'/>
<application android:hardwareAccelerated='true'
android:largeHeap='true' android:theme='@style/Theme.NoActionBar'>
<activity
android:configChanges='keyboardHidden|orientation'
android:name='org.appcelerator.titanium.TiActivity'
android:screenOrientation='portrait' android:windowSoftInputMode='stateHidden'/>
<activity
android:configChanges='keyboardHidden|orientation'
android:name='org.appcelerator.titanium.TiModalActivity'
android:screenOrientation='portrait' android:windowSoftInputMode='stateHidden'/>
<activity
android:configChanges='keyboardHidden|orientation'
android:name='org.appcelerator.titanium.TiTranslucentActivity'
android:screenOrientation='portrait' android:windowSoftInputMode='stateHidden'/>
</application>
</manifest>
</android>
Actual Result
ActionBar is still present
Expected Result
Hide ActionBar
Hieu, can you please take a look?
Hi Michele, I was not able to reproduce the issue with 4.0.0.RC version, can you please check once again on your end. I had also tried with actionbar hide method. Just works fine here. Screen shot for your reference - http://cl.ly/amGX?_ga=1.121574721.815005782.1429988273 Sorry, Was not able to find the attachment option here :)
Hi. I just tried using 4.0.0 RC but the action bar is still there :(
Michele, could you zip and attach your sample project to this ticket? I tested it with 4.0.0.RC and it works fine for me (The title bar was hidden correctly). Thanks.
Hi. I created a new Project. You can download it from this link [link TEST PROJECT 2](http://www.filedropper.com/testproject2) Please change GUID, APP ID on TIAPP.XML before compile it I tested with 3.5.1.GA and 4.0.0.RC Just a question: how to attach a file to a comment? :)
Hi Michele, in 4.0.0 we update appcompat to version 21. It looks like "android:windowActionBar" keyword isn't working with the latest appCompat library. Please use "windowActionBar" instead. This is the theme your project has:
This is what you need:
FYI, to attach a file, go to More -> Attach File
This appears to be an issue with project configuration. If after following the suggestions it's still an issue, please reopen.
Closing as addressed. Please reopen if this issue is still a problem.
Closing ticket as fixed.