Problem Description
When you disable the actionbar in the new 3.3.0.GA SDK release and set the opacity or the backgroundColor to something transparent in a window, the actionbar will show up.
Sample Code
app.js
var win = Ti.UI.createWindow({
backgroundColor : 'white',
opacity: '0.5'
});
var image = Ti.UI.createView({
backgroundColor : 'red',
});
win.add(image);
win.open();
in platform/android/res/values/custom_theme.xml
custom_theme.xml
<?xml version="1.0" encoding="utf-8"?>
<resources>
<style name="Theme.NoActionBar" parent="@style/Theme.Titanium">
<!-- Depending on the parent theme, this may be called android:windowActionBar instead of windowActionBar -->
<item name="windowActionBar">false</item>
</style>
</resources>
tiapp.xml
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest>
<application android:theme="@style/Theme.NoActionBar"/>
<!-- Need to specify at least API level 11 for Titanium SDK 3.2.x and prior -->
<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="19"/>
</manifest>
</android>
Steps to reproduce
1. Create a new mobile project
2. Paste the testcase where needed
3. Test in device
Actual Results
Actionbar shows when opacity property is used in window, even though Actionbar is disabled using custom theme file in the project.
No comments