Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-4647] Android: TableView backgroundColor disables the system row selector

GitHub Issuen/a
TypeBug
PriorityLow
StatusClosed
ResolutionFixed
Resolution Date2012-01-04T16:36:34.000+0000
Affected Version/sRelease 1.7.1
Fix Version/sSprint 2011-29, Release 1.8.0, Release 1.7.6
ComponentsAndroid
Labelsmodule_tableview, qe-testadded
ReporterMarshall Culpepper
AssigneeEric Merriman
Created2011-07-13T08:50:00.000+0000
Updated2012-01-04T16:36:34.000+0000

Description

If a TableViewRow has a custom backgroundColor set, and no backgroundSelectedColor or backgroundSelectedImage, then the system's row selector doesn't seem to get used. Here's a simple example:
var win = Ti.UI.createWindow({
    top: 0, left: 0, bottom: 0, right: 0,
    backgroundColor: "white"
});

var table = Ti.UI.createTableView({
    data: [ { title: "Custom background", backgroundColor: "yellow", color: "black" } ]
});
win.add(table);
win.open();

When you touch the yellow row, the system's default selector should highlight it, but currently nothing is happening.

Comments

  1. Natalie Huynh 2011-08-25

    Tested with 1.8.0.v20110819142548 Motorola Xoom 3.2 Nexus One 2.2.2
  2. Natalie Huynh 2011-08-25

    Edit comment
  3. Don Thorp 2011-11-05

    Standardizing summary and labels.
  4. Opie Cyrus 2011-12-08

    updating fixed version for merge
  5. Michael Pettiford 2011-12-09

    Tested on Ti Studio 1.0.7.201112080131 
Ti Mob SDK 1.8.0.1.v20111209011840 
OSX Lion Nexus S OS 2.3.6 Expected behavior of row being highlighted is shown
  6. Michael Pettiford 2012-01-04

    Reopening/closing to add/remove labels

JSON Source