Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2704] Android: TableViewRow selectedBackgroundImage doesn't back to backgroundColor when is transparent

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionNeeds more info
Resolution Date2013-04-03T21:30:25.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelsandroid, list, table, tableview, tableviewrow
ReporterRafael Kellermann Streit
AssigneeMauro Parra-Miranda
Created2012-10-25T14:34:19.000+0000
Updated2016-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.

Comments

  1. Rafael Kellermann Streit 2012-10-31

    Here is the fix: http://stackoverflow.com/questions/11134728/android-ice-cream-sandwich-why-listview-items-remain-selected-by-default.
  2. Daniel Sefton 2013-04-03

    Hi Rafael, Please provide a complete (but simple) reproducible test case for this that we can run. Thanks!

JSON Source