[AC-2083] Android: ListView selected background color not showing up
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Cannot Reproduce |
Resolution Date | 2014-01-01T22:56:39.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | listview |
Reporter | Darren Haligas |
Assignee | Ritu Agrawal |
Created | 2013-03-22T16:50:32.000+0000 |
Updated | 2016-03-08T07:41:03.000+0000 |
Description
When running the attached tests the selectedBackgroundColor is not applied
Attachments
File | Date | Size |
---|---|---|
app.js | 2013-03-22T16:50:32.000+0000 | 29914 |
Hello Darren, Would you mind reducing the test case to a smaller example? Generally when reporting a bug it is good practice to keep the test case to below 100 lines if possible so as to rule out other factors involved as well as reduce the amount of time it takes to understand, debug or find the root of the issue. When code has been reduced I will open up the ticket again. Thank you for cooperation. For future reference: https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report Regards, Carter
Anybody took a look at this? I'm also trying to set Android listView selectedBackgroundColor and it just don't work. Is there another issue related to this?
[~ygbr] We have not been able to reproduce this issue with 3.2.0 GA SDK. Note that on Android, clicking on ListItem's sub-views will not trigger this unless these views have 'touchEnabled' set to false. So you should be using something like this, data.push({ properties : { itemId : tasks[i].id, title : tasks[i].name, image : tasks[i].icon, accessoryType : Ti.UI.LIST_ACCESSORY_TYPE_NONE, color : 'black', selectedBackgroundColor : 'red', backgroundColor : '#666', touchEnabled : false } }); http://docs.appcelerator.com/titanium/latest/#!/api/Titanium.UI.ListItem