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

Android: Font property doesn't work for Picker and PickerColumn when keep {useSpinner: false}

    Details

    • Sprint:
      2014 Sprint 14 SDK

      Description

      On Android we can't change the font size of Picker when not using Spinner Theme.
      mean keeping useSpinner: false in property.

      Such kind of issue has also reported here: TIMOB-14007. But font size changes not work accordingly when do 'useSpinner' to 'false'.

      Test Case Code:
      -------------------------------------------
      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow({
        layout: 'vertical'
      });
       
      var picker = Ti.UI.createPicker({
        top:50,
        useSpinner: false,
        font: {fontSize: 80},  //font: {fontSize: 40},
      });
      picker.selectionIndicator = true;
       
      var fruit = [ 'Bananas', 'Strawberries', 'Mangos', 'Grapes' ];
       
      var column1 = Ti.UI.createPickerColumn({
          font: {fontSize: 80},  //font: {fontSize: 40},
          height : Ti.UI.SIZE,
          width : Ti.UI.SIZE
      });
       
      for(var i=0, ilen=fruit.length; i<ilen; i++){
        var row = Ti.UI.createPickerRow({
          title: fruit[i]
        });
        column1.addRow(row);
      }
       
      picker.add([column1]);
       
      win.add(picker);
       
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sunila Sunila
                Reporter:
                Farhan Farhan
                Reviewer:
                Hieu Pham
                Tester:
                Lokesh Choudhary
              • Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code