Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-19822

Android: Picker spinner columns and its items are not sized/positioned correctly on Android 5.0 and higher

    Details

    • Type: Bug
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: Release 5.0.2
    • Fix Version/s: Release 7.3.0
    • Component/s: Android
    • Environment:

      Mac OS X 10.10.5
      Ti SDK 5.0.3.v20151002003129
      Ti SDK 5.0.1GA
      Ti SDK 4.1.0GA
      Android 5.1.0 / 4.4.2
      Studio 4.3.0.201509151348

    • Story Points:
      5
    • Sprint:
      2018 Sprint 10 SDK

      Description

      Steps to reproduce:

      • Create a view with a

         <Picker useSpinner="true"/> 

      • Create a PickerColumn with 9 PickerRows and add it into the Picker.
      • It will look strange (see attached image). The number is not in the middle of the selection indicator.
      • Try setting your PickerColumn height or width to double its size: it gets worse. The selection indicator always shows 2 rows below what is currently selected.
        In the image below the first 3 picker columns are selecting the first row (0), but what is actually being shown is that the 2 is selected. The 4th column selecting the last row (9), but what is being shown is that white space.

      What i've tried:

      • Tested on Ti SDK 4.1.0GA, 5.0.1GA and 5.0.3.v20151002003129
      • Tested on both android 5.1.0 (simulator) and 4.4.2 (real device)
      • Setting each picker row's height doesn't change anything

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                rdperottoni Rodolfo Perottoni
                Reviewer:
                Joshua Quick
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Titanium SDK/CLI <> Titanium Mobile
                    Synced with:
                    TIMOB-20574
                    Sync status:
                    ERROR
                    Last received:
                    Last sent:

                    Git Source Code