[TIMOB-11952] Android: Background image of window never shows up when there is a view inside on specific devices
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Not Our Bug |
| Resolution Date | 2013-01-16T10:52:48.000+0000 |
| Affected Version/s | n/a |
| Fix Version/s | 2013 Sprint 02 API, 2013 Sprint 02 |
| Components | Android |
| Labels | n/a |
| Reporter | Amuktha Akkinepally |
| Assignee | Ping Wang |
| Created | 2012-12-04T20:09:57.000+0000 |
| Updated | 2013-03-27T22:53:16.000+0000 |
Description
When trying to add a background image to a window with a view inside. The image never shows. There is just a blank grey background that shows up. This behaviour is only seen on specific devices listed above. On other devices it just works fine.
var win = Titanium.UI.createWindow({
backgroundImage:'test.png'
})
var data = [];
data[0] = Ti.UI.createTableViewRow({hasChild:true,title:'Row 1', backgroundColor:'green'});
data[1] = Ti.UI.createTableViewRow({hasDetail:true,title:'Row 2', backgroundColor:'green'});
data[2] = Ti.UI.createTableViewRow({hasCheck:true,title:'Row 3', backgroundColor:'green'});
data[3] = Ti.UI.createTableViewRow({title:'Row 4', backgroundColor:'green'});
data[4] = Ti.UI.createTableViewRow({hasChild:true,title:'Row 1', backgroundColor:'green'});
data[5] = Ti.UI.createTableViewRow({hasDetail:true,title:'Row 2', backgroundColor:'green'});
data[6] = Ti.UI.createTableViewRow({hasCheck:true,title:'Row 3', backgroundColor:'green'});
data[7] = Ti.UI.createTableViewRow({title:'Row 4', backgroundColor:'green'});
var testView = Titanium.UI.createTableView({
backgroundColor:'transparent',
data:data,
})
win.add(testView);
win.open();
Attachments
| File | Date | Size |
|---|---|---|
| test.png | 2012-12-04T20:09:57.000+0000 | 3244 |
This issue also happens when testing with a native Android project on Droid 3. It is not a Titanium bug. Motorola changed attribute values for built-in themes on their devices. Here are some similar discussion http://stackoverflow.com/questions/7245923/listview-background-is-grey-on-droid-3
Image is not shown on other devices like Samung GALAXY Tab 620 Android 3.2 and LG-P970 Android 2.2.2 as well. Environment used for verification - Titanium SDK: 3.1.0.v20130228214607 Titanium Studio:3.0.2.201302141201