[AC-2704] Android: TableViewRow selectedBackgroundImage doesn't back to backgroundColor when is transparent
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Closed |
Resolution | Needs more info |
Resolution Date | 2013-04-03T21:30:25.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | android, list, table, tableview, tableviewrow |
Reporter | Rafael Kellermann Streit |
Assignee | Mauro Parra-Miranda |
Created | 2012-10-25T14:34:19.000+0000 |
Updated | 2016-03-08T07:41:49.000+0000 |
Description
Hello,
I have a TableView with many TableViewSections. My TableViewRows have backgroundColor as *transparent*, and the *selectedBackgroundColor* as #6E2E1C, this is an example:
var tableViewRow = Ti.UI.createTableViewRow({
className: "fuu",
backgroundColor: "transparent",
selectedBackgroundColor: "#6E2E1C"
});
When the row is clicked, the backgroundColor is changed to selectedBackgroundColor, but the backgroundColor never backs to transparent.
It only happens when used with backgroundColor transparent. If we set a backgroundColor different (like #FF0000) to TableViewRow, it works perfeclty.
Here is the fix: http://stackoverflow.com/questions/11134728/android-ice-cream-sandwich-why-listview-items-remain-selected-by-default.
Hi Rafael, Please provide a complete (but simple) reproducible test case for this that we can run. Thanks!