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();
PR: https://github.com/appcelerator/titanium_mobile/pull/3758
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.
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
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