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

Android DrawerLayout: Unexpected Behaviour when using "Theme.AppCompat.Light.NoActionBar"

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.0, Release 6.3.0
    • Fix Version/s: None
    • Component/s: Android
    • Labels:
    • Environment:

      SDK 6.3.0 and 7.0.0
      Android 6.x and 7.x
      CLI 7.0.0

    • Story Points:
      5
    • Sprint:
      2017 Sprint 25 SDK

      Description

      Problem

      After removing actionBar by using "@style/Theme.AppCompat.Light.NoActionBar", The centerWindow of DrawerLayout is leaving a black box in the top of screen. And the left and right Windows looks all right. (Attached screen shot.)

      Reproduce

      1. Create a simple classic project.
      2. Add following code to app,js

      var win = Ti.UI.createWindow();
       
      var leftView = Ti.UI.createView({ backgroundColor:'red' });
      var centerView = Ti.UI.createView({ backgroundColor:'yellow' });
      var rightView = Ti.UI.createView({ backgroundColor:'orange' });
       
      var drawer = Ti.UI.Android.createDrawerLayout({
          leftView: leftView,
          centerView: centerView,
          rightView: rightView
      });
       
      win.add(drawer);
      win.open();
      

      3. Add following lines to tiapp.xml

      <android xmlns:android="http://schemas.android.com/apk/res/android">
          	<manifest>
              	<application android:theme="@style/Theme.Appcelerator"/>
              	<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="25"/>
          	</manifest>
      </android>
      

      4. Add attached mytheme.xml file into ./platform/android/res/values folder
      5. Run the app. You will see the problem.

      Note

      1. The problem can be reproduce in both SDK 6.3.0 and 7.0.0.GA

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                gmathews Gary Mathews
                Reporter:
                sliang Shuo Liang
              • Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code