Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2140] Android: ListView position parity issue when using accessoryType

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionFixed
Resolution Date2014-01-08T06:01:43.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
Labelslistview, parity
ReporterNeville Dastur
AssigneeRitu Agrawal
Created2013-06-01T17:36:49.000+0000
Updated2016-03-08T07:41:07.000+0000

Description

The left and right position of items in a listview differs between iOS and Android when using accessoryType as shown in the screenshots. In this case it is set to Ti.UI.LIST_ACCESSORY_TYPE_DETAIL So the text items on the right are UI.Labels with a right property of '5dp' I think the Android one needs fixing as it makes more sense not to have to account for the size of detail symbols manually. Note the lack of images on the Android version is another bug where remote images are not loaded in an ImageView. But the details need refining.

Attachments

FileDateSize
device-2013-06-01-183653.png2013-06-01T17:38:13.000+0000125319
device-2013-12-14-121030.png2013-12-14T06:13:23.000+000035805
iOS_Listview.png2013-06-01T17:40:10.000+000073930
iOS Simulator Screen shot Dec 14, 2013 12.09.35 PM.png2013-12-14T06:13:23.000+000074126
iOS Simulator Screen shot ti_cls.png2013-12-22T16:29:08.000+000038584
ti_cls_andoid_.png2013-12-22T16:29:08.000+000026039

Comments

  1. Daniel Sefton 2013-06-03

    Hi Neville, Does that happen to be from a listview sample, or is it your own code. If it's your own code, can you provide a reproducible test case in an app.js? Thanks!
  2. Neville Dastur 2013-06-03

    Hi Daniel Using the same repo code for the listview crash bug I made a minor modification to show the above issue. [https://github.com/ClinicalSoftwareSolutions/DemoBug/tree/listview_android_crash] Neville
  3. Daniel Sefton 2013-06-04

    So to reproduce this I guess I need to build Alloy 1.2? I'm getting errors like:
    [16,34] alloy/controllers/listview.js
       Uncaught TypeError: Object #<UI> has no method 'createTemplates'
  4. Neville Dastur 2013-06-04

    Hi Daniel, yes sorry you do. But that is only because I took the short cut of using the same code base as the other bug. It isn't a Alloy 1.2 error
  5. Tony Lukasavage 2013-07-26

    [~dsefton] http://developer.appcelerator.com/question/155021/how-do-i-install-alloy-any-version-or-rollbacks
  6. Shak Hossain 2013-09-17

    Hi Neville Can you please try our latest release Ti 3.1.2 or the nightly CI build if this issue exists? Please let me know your test results so that we can review this again.
  7. Mostafizur Rahman 2013-09-23

    Tested this, verified to be valid.
  8. Ritu Agrawal 2014-01-08

    Reproduced this issue with 3.1.3 SDK and verified that issue has been fixed in 3.2.0 GA release.

JSON Source