| GitHub Issue | n/a |
| Type | Bug |
| Priority | High |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2013-08-14T19:40:50.000+0000 |
| Affected Version/s | Release 3.1.2 |
| Fix Version/s | 2013 Sprint 16, 2013 Sprint 16 API, Release 3.1.2, Release 3.2.0 |
| Components | Android, iOS |
| Labels | android, qe-3.1.2, qe-closed-3.1.2, qe-testadded |
| Reporter | Olga Romero |
| Assignee | Hieu Pham |
| Created | 2013-07-31T21:03:16.000+0000 |
| Updated | 2015-02-02T20:47:15.000+0000 |
This is not a regression, it happens with 3.1.1.GA a swell, seems like an Android 4.3 issue
Test steps:
1. Install and run KitchenSink>Views>Events Interaction
Actual result:
The box is invisible, although click event returned the message that the box was clicked
Expected result:
The purple box should be visible
PR: https://github.com/appcelerator/titanium_mobile/pull/4519
3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4530
Tested and verified fix with: Appcelerator Studio, build: 3.1.2.201308021524 Titanium SDK, build: 3.1.2.v20130806104555 Alloy 1.2.0-alpha6 CLI: 3.1.2-alpha Devices: Nexus7(2) Android version 4.3 GalaxyS3 Android version 4.0.4
WARNING: The PR is wrong and broke transparency for colors like "#00ff0000"
Excellent point. Thank you for bringing that up. Master PR: https://github.com/appcelerator/titanium_mobile/pull/4572
Additional test case
1. Run code, should see a white screen.var win = Ti.UI.createWindow({backgroundColor: 'white'}); var view = Ti.UI.createView({backgroundColor: '#00FF0000'}); win.add(view); win.open();Extensive test case:
var tests = {}; var win = Ti.UI.createWindow({backgroundColor: 'white'}); var section = Ti.UI.createListSection({ headerTitle: 'Colors Test'}); section.setItems([ { properties: {title: 'Maroon Window', itemId: 'maroon', font: {fontSize: 24} } }, { properties: {title: 'Fuchsia Window', itemId: 'fuchsia', font: {fontSize: 24}} }, { properties: {title: 'Olive Window', itemId: 'olive', font: {fontSize: 24}} }, { properties: {title: 'Silver Window', itemId: 'silver', font: {fontSize: 24}} }, { properties: {title: 'Aqua Window', itemId: 'aqua', font: {fontSize: 24}} }, { properties: {title: 'Lime Window', itemId: 'lime', font: {fontSize: 24}} }, { properties: {title: 'Navy Window', itemId: 'navy', font: {fontSize: 24}} }, { properties: {title: 'Purple Window', itemId: 'purple', font: {fontSize: 24}} }, { properties: {title: 'Blue Window', itemId: 'blue', font: {fontSize: 24}} }, { properties: {title: 'Yellow Window', itemId: 'yellow', font: {fontSize: 24}} }, { properties: {title: 'Teal Window', itemId: 'teal', font: {fontSize: 24}} } ]); var listView = Ti.UI.createListView({backgroundColor: "white", sections: [section]}); listView.addEventListener('itemclick', function(e) { var f = tests[e.itemId]; if (f) f(); }); win.add(listView); tests.maroon = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'maroon', title: 'Maroon Window' }); var view = Ti.UI.createView({backgroundColor: '#00FF00FF'}); win.add(view); win.open(); } tests.fuchsia = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'fuchsia', title: 'Fuchsia Window' }); win.open(); } tests.olive = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'olive', title: 'Olive Window' }); var view = Ti.UI.createView({backgroundColor: '#00FF00FF'}); win.add(view); win.open(); } tests.silver = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'silver', title: 'Silver Window' }); var view = Ti.UI.createView({backgroundColor: '#00FF0000'}); win.add(view); win.open(); } tests.aqua = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'aqua', title: 'Aqua Window' }); win.open(); } tests.lime = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'lime', title: 'Lime Window' }); win.open(); } tests.navy = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'navy', title: 'Navy Window' }); var view = Ti.UI.createView({backgroundColor: '#00FF00FF'}); win.add(view); win.open(); } tests.purple = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'purple', title: 'Purple Window' }); win.open(); } tests.teal = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'teal', title: 'Teal Window' }); win.open(); } tests.blue = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'blue', title: 'Blue Window' }); var view = Ti.UI.createView({backgroundColor: '#00FF00FF'}); win.add(view); win.open(); } tests.yellow = function() { var win = Ti.UI.createWindow({fullscreen: false, backgroundColor: 'yellow', title: 'Yellow Window' }); win.open(); } win.open();3_1_X PR: https://github.com/appcelerator/titanium_mobile/pull/4573
Tested above code and verified fix with: Appcelerator Studio: , build: 3.1.2.201308091728 Titanium SDK, build: 3.1.2.v20130814124556 CLI: 3.1.2-alpha Alloy: 1.2.0-alpha6 Device: Nexus4 Android version 4.3