[TIMOB-19855] Android 6.0 : Row height in a TableView on android 6.0 is abnormally big
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-11-11T03:12:34.000+0000 |
Affected Version/s | Release 5.1.0 |
Fix Version/s | Release 5.1.0, Release 5.2.0 |
Components | Android |
Labels | qe-5.1.0 |
Reporter | Lokesh Choudhary |
Assignee | Hieu Pham |
Created | 2015-11-03T22:25:03.000+0000 |
Updated | 2016-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.1Expected Results:
1. The row height should not be abnormally big.Attachments
File | Date | Size |
---|---|---|
Android_5.1.0.png | 2015-11-03T22:40:50.000+0000 | 51915 |
Android_6.0.png | 2015-11-03T22:40:52.000+0000 | 47367 |
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
master PR: https://github.com/appcelerator/titanium_mobile/pull/7417
master PR merged. Backport 5_1_X PR created: https://github.com/appcelerator/titanium_mobile/pull/7420
Both Master and Backport 5_1_X PR merged.
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