[TIMOB-1539] Android: selectedBackgroundColor behavior incorrect (TableViewRow)
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Low |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-05-01T22:51:14.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, defect |
Reporter | Bill Dawson |
Assignee | Ingo Muschenetz |
Created | 2011-04-15T02:55:24.000+0000 |
Updated | 2017-06-07T21:34:05.000+0000 |
Description
(Probably should be done in concert with #1509 re
selectedBackgroundImage
).
Using this test app.js:
Titanium.UI.setBackgroundColor('#000');
var w = Ti.UI.createWindow({fullscreen: true});
var data = [];
for (var i = 0; i < 10; i++) {
var color = (i % 2) ? 'red' : 'blue';
data.push(Ti.UI.createTableViewRow({
selectedBackgroundColor: color,
title: 'Row ' + (i + 1)
}));
};
var tv = Ti.UI.createTableView({
data: data
});
w.add(tv);
w.open();
In iOS, if you touch one of the rows, it's
selectedBackgroundColor
will show until you finish the
touch. In Android, if you touch one of the rows then the default
orange-ish background appears. If you use the hardware scroll to
scroll down the list (which selects each row one-at-a-time as you
scroll), each row's selectedBackgroundColor
will then
appear, but then not disappear when you move to the next row. (So,
using the example above, you end up with a
red-blue-red-blue-red-blue etc. table by the time you get to the
bottom row.)
Comments
- Jeff Haynie 2011-04-15
what's an estimate of time to fix this (roughly)?
- Don Thorp 2011-04-15
I'm going to try and look this afternoon to get a better feel. Marshall spent some time on it yesterday and the fix wasn't obvious.
- Victor Schelin 2011-04-15
Any updates? Kind of boring to just have black rows..
- Lee Morris 2017-05-01 Resolving ticket as Invalid as there is hardly any information whatsoever and this was created in April 2011 with no response since that time.