Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25610] Android DrawerLayout: Unexpected Behaviour when using "Theme.AppCompat.Light.NoActionBar"

GitHub Issuen/a
TypeBug
PriorityNone
StatusClosed
ResolutionFixed
Resolution Date2018-10-17T16:13:01.000+0000
Affected Version/sRelease 7.0.0, Release 6.3.0
Fix Version/sn/a
ComponentsAndroid
LabelsDrawerLayout
ReporterShuo Liang
AssigneeGary Mathews
Created2017-12-14T03:09:37.000+0000
Updated2018-10-17T16:13:01.000+0000

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

FileDateSize
mytheme.xml2017-12-14T03:08:00.000+00001190
Screen Shot 2017-12-14 at 11.00.37 AM.png2017-12-14T03:04:22.000+0000123121

Comments

  1. Shak Hossain 2018-10-17

    This is fixed in 7.0.1

JSON Source