[TIMOB-24901] Android: List disclosure indicators increases size from SDK 5.5.1.GA to SDK 6.1.1.v20170615113917
GitHub Issue | n/a |
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2017-08-14T16:32:44.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Android |
Labels | android, regression, titanium |
Reporter | Julian Mountford |
Assignee | Joshua Quick |
Created | 2017-06-20T07:59:25.000+0000 |
Updated | 2017-08-14T16:32:44.000+0000 |
Description
List disclosure indicators an Android display far too large when using Titanium SDK 6.1.1.v20170615113917. The indicators are probably around twice the size they used to display when using SDK 5.5.1.GA.
The attached image shows a screenshot of the bug in a test app using Titanium SDK 6.1.1.v20170615113917
I've taken some example code from the Appcelerator docs and simplified it slightly to show how to reproduce the issue. The Titanium SDK used to test this was 6.1.1.v20170615113917. It is also a bug in Titanium SDK 6.1.0.GA. It is not a bug in Titanium SDK 5.5.1.GA.
{noformat}
var win = Ti.UI.createWindow({backgroundColor: 'white'});
var listView = Ti.UI.createListView();
var tasks = [
{id: 'trash', name: 'Take Out the Trash'},
{id: 'dishes', name: 'Do the Dishes'},
{id: 'doggie', name: 'Walk the Dog'}
];
var data = [];
for (var i = 0; i < tasks.length; i++) {
data.push({
properties: {
itemId: tasks[i].id,
title: tasks[i].name,
accessoryType: Ti.UI.LIST_ACCESSORY_TYPE_DISCLOSURE,
color: 'black'
}
});
}
var section = Ti.UI.createListSection();
section.setItems(data);
listView.sections = [section];
win.add(listView);
win.open();
{noformat}
Attachments
This is also a bug in Titanium 6.1.1.GA. It's not limited to disclosure indicators either, the same problem exists with Ti.UI.LIST_ACCESSORY_TYPE_CHECKMARK. Tested on Google Pixel XL, Android 7.1.2. When the same app is built with Titanium 5.5.1.GA, all is well.
[~jmountford], this issue has been resolved in Titanium 6.1.2 (see [TIMOB-24174]), which has been recently released. Please give that version a go.
Issue was fixed in Titanium 6.1.2. See case: [TIMOB-24174]