Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19812] Android: Arbitrary ListView template height.

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2016-06-03T19:31:09.000+0000
Affected Version/sRelease 5.0.2, Release 5.2.2
Fix Version/sRelease 6.0.0
ComponentsAndroid
Labelsandroid, listview, template
ReporterCollin Price
AssigneeAshraf Abu
Created2015-10-26T13:25:01.000+0000
Updated2016-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

Comments

  1. Aminul Islam 2015-10-27

    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:
       Tue 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
       Command
       
    Thanks
  2. Sharif AbuDarda 2016-05-03

    Hello, 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
       
  3. Motiur Rahman 2016-05-03

    [~cng], Any update here?
  4. Hieu Pham 2016-05-26

    master PR: https://github.com/appcelerator/titanium_mobile/pull/8023
  5. Hans Knöchel 2016-05-27

    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).
  6. Ashraf Abu 2016-08-04

  7. Lokesh Choudhary 2016-08-22

    Verified the fix. The default 30dp height 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

JSON Source