Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-18837

Android: Hiding ActionBar Broken with SDK 4.0.0.Beta2

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: Release 4.0.0, Release 4.1.0
    • Fix Version/s: Release 4.0.0
    • Component/s: Android
    • Labels:
    • Environment:

      Titanium Studio 3.4.1

      Description

      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

        Attachments

        1. ACTION BAR SDK 4.0.0.Beta2.png
          160 kB
          Michele Riso
        2. diagnostic8075568263503564183.log
          39 kB
          Michele Riso
        3. NO ACTION BAR SDK 3.5.1.GA.png
          154 kB
          Michele Riso
        4. Screen Shot 2015-04-24 at 11.37.46 AM.png
          48 kB
          Harish Mridha
        5. Screen Shot 2015-04-24 at 11.40.01 AM.png
          46 kB
          Harish Mridha
        6. Screen Shot 2015-04-24 at 12.42.12 PM.png
          46 kB
          Harish Mridha
        7. Screen Shot 2015-04-24 at 12.47.00 PM.png
          46 kB
          Harish Mridha

          Issue Links

            Activity

              People

              • Assignee:
                hpham Hieu Pham
                Reporter:
                zeroc87 Michele Riso
                Reviewer:
                Hieu Pham
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-19871
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code