Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-17552] Android: Actionbar shows up although you disable it with a costom theme when opacity is used in window.

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.3.0
Fix Version/sn/a
ComponentsAndroid
LabelsTCSupport, android
ReporterRoland Schwan
AssigneeUnknown
Created2014-08-01T13:51:34.000+0000
Updated2018-02-28T20:03:46.000+0000

Description

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.

Comments

No comments

JSON Source