[TIMOB-19812] Android: Arbitrary ListView template height.
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Medium |
| Status | Closed |
| Resolution | Fixed |
| Resolution Date | 2016-06-03T19:31:09.000+0000 |
| Affected Version/s | Release 5.0.2, Release 5.2.2 |
| Fix Version/s | Release 6.0.0 |
| Components | Android |
| Labels | android, listview, template |
| Reporter | Collin Price |
| Assignee | Ashraf Abu |
| Created | 2015-10-26T13:25:01.000+0000 |
| Updated | 2016-08-22T21:51:17.000+0000 |
Description
On the Android platform ListView Items have an arbitrary minimum height of 30dp. There is nothing in the Android SDK preventing a user from creating a List with items that have a smaller height than 30dp. This is restricting flexibility in Titanium.
This ticket was created out of a discussion in the Community Q & A.
https://community.appcelerator.com/topic/3106/listview-template-properties-s-height-problem
https://github.com/appcelerator/titanium_mobile/commit/4c4c5cbeef8883827e97afc15769fe9c46eecbd8
Hi , I have tested this issue . This is a valid bug . ListView template properties's height is not working properly when height smaller than 30dp. Test Environment:
ThanksTue Oct 27 2015 13:08:21 GMT+0600 (BDT) Operating System Name = Mac OS X Version = 10.10.5 Architecture = 64bit # CPUs = 4 Memory = 8589934592 Node.js Node.js Version = 0.10.37 npm Version = 1.4.28 Titanium CLI CLI Version = 5.0.5 Titanium SDK SDK Version = 5.0.2.GA SDK Path = /Users/Raju/Library/Application Support/Titanium/mobilesdk/osx/5.0.2.GA Target Platform = android CommandHello, This is still an issue in SDK 5.2.2.GA. ListView template's propertie "height" is not working when height smaller than 30dp.
Operating System Name = Mac OS X Version = 10.11.4 Architecture = 64bit # CPUs = 4 Memory = 8589934592 Node.js Node.js Version = 4.2.2 npm Version = 2.14.7 Titanium CLI CLI Version = 5.0.6 Titanium SDK SDK Version = 5.2.2.GA Target Platform = android Android version 6.0.0[~cng], Any update here?
master PR: https://github.com/appcelerator/titanium_mobile/pull/8023
Now that this min-height is fixed, will list-cells also have the default height like they do natively? The default 30px always sucked when comparing to the 43px on iOS (also natively).
Verified the fix. The default
30dpheight is removed. Closing. Environment: Appc Studio : 4.7.1.201608190732 Ti SDK : 6.0.0.v20160822001523 Ti CLI : 5.0.9 Alloy : 1.9.1 MAC El Capitan : 10.11.6 Appc NPM : 4.2.7 Appc CLI : 6.0.0-26 Node: 4.4.4 Nexus 6 - Android 6.0.1