Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11952] Android: Background image of window never shows up when there is a view inside on specific devices

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionNot Our Bug
Resolution Date2013-01-16T10:52:48.000+0000
Affected Version/sn/a
Fix Version/s2013 Sprint 02 API, 2013 Sprint 02
ComponentsAndroid
Labelsn/a
ReporterAmuktha Akkinepally
AssigneePing Wang
Created2012-12-04T20:09:57.000+0000
Updated2013-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

FileDateSize
test.png2012-12-04T20:09:57.000+00003244

Comments

  1. Ping Wang 2013-01-15

    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
  2. Shyam Bhadauria 2013-03-04

    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

JSON Source