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
This is fixed in 7.0.1