[TIMOB-15789] Android: ListView UI changed in respect to width of row and border line missing in 3.2 SDK
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-11-25T19:49:42.000+0000 |
Affected Version/s | Release 3.2.0 |
Fix Version/s | Release 3.2.0 |
Components | Android |
Labels | module_listview, qe-3.2.0, qe-closed-3.2.0, qe-testadded, regression |
Reporter | Pragya Rastogi |
Assignee | Hieu Pham |
Created | 2013-11-22T07:29:12.000+0000 |
Updated | 2014-02-20T10:43:29.000+0000 |
Description
In SDK: 3.2.0.v20131121163252 the height of a row in listView has increased to a large extent as compared to SDK:3.1.3.GA
Steps to reproduce:
1. Run the code using SDK:3.1.3.GA and SDK: 3.2.0.v20131121163252
Actual: UI has changed in respect to width of row
Expected : UI must remain same and width must be as expected
var win = Ti.UI.createWindow({
backgroundColor : "#FFF"
})
var section = Ti.UI.createListSection();
var table = Ti.UI.createListView({
sections : [section],
top : 48
});
win.add(table);
var items = [];
for (var i = 0; i < 10; i++) {
items.push({
properties : {
title : "Test " + i
}
});
}
section.setItems(items);
var button = Ti.UI.createButton({
text : "Test",
width : 100,
height : 44,
bottom : 0
});
win.add(button);
button.addEventListener("click", function() {
Ti.API.info("Table Top Value Before Set: " + table.top);
table.top = 0;
Ti.API.info("Table Top Value After Set: " + table.top);
});
win.open();
Attachments
File | Date | Size |
---|---|---|
SDK3.2.png | 2013-11-22T07:29:12.000+0000 | 43165 |
SDK313.png | 2013-11-22T07:29:12.000+0000 | 41171 |
This bug is reproducible on: Titanium Studio, build: 3.2.0.201311211626 Titanium SDK, build: 3.2.0.v20131121163252 CLI: 3.2.0-alpha +Tested 3.1.3 on:+ Galaxy SIII (4.0.4) Galaxy Note (4.1.2) Xperia S (4.1.2) Nexus 4 (4.3) +Tested 3.2.0 on:+ Galaxy SIII (4.0.4) Galaxy Note (4.1.2) Xperia S (4.1.2) Nexus 4 (4.3) Latest 3.2.0 configuration will increase row height and remove the border lines. 3.1.3.GA devices show the border lines as well as a smaller row height.
Merged into master
Verified fixed on: Mac OSX 10.9 Mavericks Titanium Studio, build: 3.2.0.201311221859 Titanium SDK, build: 3.2.0.v20131125114848 CLI: 3.2.0-alpha3 Alloy: 1.3.0-alpha6 Android Device: Nexus 7 (4.3) Row height in 3.2.0 is now similar to that of 3.1.3.GA. Seperator still not showing using this code as they are not expected to be shown. Closing.