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


    • 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

    • Story Points:
    • Sprint:
      2018 Sprint 10 SDK


      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


        1. Screen Shot 2015-10-07 at 11.29.08.png
          15 kB
          Rodolfo Perottoni
        2. Screen Shot 2015-10-07 at 11.31.06.png
          43 kB
          Rodolfo Perottoni
        3. SpinnerTest.js
          2 kB
          Joshua Quick
        4. SpinnerTest-bad.png
          329 kB
          Joshua Quick
        5. SpinnerTest-good.png
          314 kB
          Joshua Quick

          Issue Links



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


                • Created:

                  Backbone Issue Sync

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

                    Git Integration