Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19855] Android 6.0 : Row height in a TableView on android 6.0 is abnormally big

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2015-11-11T03:12:34.000+0000
Affected Version/sRelease 5.1.0
Fix Version/sRelease 5.1.0, Release 5.2.0
ComponentsAndroid
Labelsqe-5.1.0
ReporterLokesh Choudhary
AssigneeHieu Pham
Created2015-11-03T22:25:03.000+0000
Updated2016-05-27T22:46:42.000+0000

Description

Steps To Reproduce:

1. Use the code below in the app.js:
Ti.UI.backgroundColor = 'white';
var win = Ti.UI.createWindow();

var tableData = [ {title: 'Apples'}, {title: 'Bananas'}, {title: 'Carrots'}, {title: 'Potatoes'} ];

var table = Ti.UI.createTableView({
  data: tableData
});
win.add(table);
win.open();
2. Build for android 6.0 device / emulator. 3. After the app launches check out the row height.

Actual Results:

1. The row height is big, equal to the visible area of the app. 2. Works fine with android 5.1.1

Expected Results:

1. The row height should not be abnormally big.

Attachments

FileDateSize
Android_5.1.0.png2015-11-03T22:40:50.000+000051915
Android_6.0.png2015-11-03T22:40:52.000+000047367

Comments

  1. carlo 2015-11-09

    problem occours when using android sdk 23, I don't know how to force a different one for titanium build but simply renaming the "platforms/android-23" folder make my code work again
  2. Hieu Pham 2015-11-10

    master PR: https://github.com/appcelerator/titanium_mobile/pull/7417
  3. Ashraf Abu 2015-11-11

    master PR merged. Backport 5_1_X PR created: https://github.com/appcelerator/titanium_mobile/pull/7420
  4. Ashraf Abu 2015-11-11

    Both Master and Backport 5_1_X PR merged.
  5. Lokesh Choudhary 2015-11-11

    Verified the fix. Row height appears normal. Closing. Environment: Appc Studio : 4.4.0.201511101919 Ti SDK : 5.1.0.v20151110202023, 5.2.0.v20151111092632 Ti CLI : 5.0.5 Alloy : 1.7.24 MAC Yosemite : 10.10.5 Appc NPM : 4.2.1 Appc CLI : 5.1.0-50 Node: v0.10.37 Nexus 6 - Android 6.0

JSON Source