Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15789] Android: ListView UI changed in respect to width of row and border line missing in 3.2 SDK

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2013-11-25T19:49:42.000+0000
Affected Version/sRelease 3.2.0
Fix Version/sRelease 3.2.0
ComponentsAndroid
Labelsmodule_listview, qe-3.2.0, qe-closed-3.2.0, qe-testadded, regression
ReporterPragya Rastogi
AssigneeHieu Pham
Created2013-11-22T07:29:12.000+0000
Updated2014-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

FileDateSize
SDK3.2.png2013-11-22T07:29:12.000+000043165
SDK313.png2013-11-22T07:29:12.000+000041171

Comments

  1. Samuel Dowse 2013-11-22

    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.
  2. Hieu Pham 2013-11-22

  3. Pedro Enrique 2013-11-25

    Merged into master
  4. Samuel Dowse 2013-11-26

    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.

JSON Source