Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2083] Android: ListView selected background color not showing up

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2014-01-01T22:56:39.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelslistview
ReporterDarren Haligas
AssigneeRitu Agrawal
Created2013-03-22T16:50:32.000+0000
Updated2016-03-08T07:41:03.000+0000

Description

When running the attached tests the selectedBackgroundColor is not applied

Attachments

FileDateSize
app.js2013-03-22T16:50:32.000+000029914

Comments

  1. Carter Lathrop 2013-03-27

    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
  2. Ygor Lemos 2013-11-14

    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?
  3. Ritu Agrawal 2014-01-01

    [~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

JSON Source