Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11865] Android: When using Holo theme, table highlight color does not match

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2013-01-24T19:39:54.000+0000
Affected Version/sn/a
Fix Version/sRelease 3.0.2, Release 3.1.0, 2013 Sprint 02 API, 2013 Sprint 02
ComponentsAndroid
LabelsSupportTeam, qe-port, tableViewRow, xml
ReporterDavide Cassenti
AssigneePing Wang
Created2012-11-27T12:12:12.000+0000
Updated2013-07-02T10:42:15.000+0000

Description

Problem description

When choosing the Holo theme for Android, the highlight color for table rows is not the right one (blue); instead, the highlight is orange. With the same theme, the pressed button is blue as it should.

Steps to reproduce

First of all, activate the Holo theme by adding it in the tiapp.xml:
[...]
android:theme="@android:style/Theme.Holo"
[...]
Then, using the following code you can verify that pressing a row in the table results in an orange highlight, while pressing the button shows a blue background:
var win1 = Titanium.UI.createWindow({  
    backgroundColor:"#000"
});

var table = Ti.UI.createTableView();
var rows = [];
for(var i=1; i<=10; i++) {
    var row = Ti.UI.createTableViewRow({
        title: "Wrong color " + i
    });
    
    rows.push(row);
} 

table.setData(rows);
win1.add(table);

var button = Ti.UI.createButton({
    title: "Right color"
});
win1.add(button);

win1.open();

Comments

  1. Ping Wang 2013-01-23

    PR: https://github.com/appcelerator/titanium_mobile/pull/3758
  2. Ping Wang 2013-01-23

    For FR, please run the above test case and the test cases in TIMOB-4647 and TIMOB-9616 and run KS->Base UI->Views->Table Views as a sanity check.
  3. Olga Romero 2013-01-25

    Closing. Tested and verified fix with: Titanium Studio, build: 3.0.1.201212181159 Titanium SDK, build: 3.0.2.v20130124114701 Titanium SDK, build: 3.1.0.v20130124121019 Device: Nexus4 4.2
  4. Joucke Hempenius 2013-07-02

    Why was this closed as fixed? It's still happening... Also, the tablerow dividers are different than from Holo theme. Device: Samsung Galaxy S3 mini, 4.1 Titanium SDK 3.1.1.GA

JSON Source