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

Android: Font property doesn't work for Picker and PickerColumn

    Details

      Description

      Test case for PickerColumn:

      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow({
        layout: 'vertical'
      });
       
      var picker = Ti.UI.createPicker({
        top:50,
        useSpinner: true
      });
      picker.selectionIndicator = true;
       
      var fruit = [ 'Bananas', 'Strawberries', 'Mangos', 'Grapes' ];
      var color = [ 'red', 'green', 'blue', 'orange' ];
       
      var column1 = Ti.UI.createPickerColumn({
      	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);
      }
       
      var column2 = Ti.UI.createPickerColumn({
      	height : Ti.UI.SIZE,
      	width : Ti.UI.SIZE
      });
       
      for(var i=0, ilen=color.length; i<ilen; i++){
        var row = Ti.UI.createPickerRow({ title: color[i] });
        column2.addRow(row);
      }
       
      picker.add([column1,column2]);
       
      win.add(picker);
       
      win.open();
      

      Test case for Date Picker:

      Ti.UI.backgroundColor = 'white';
      var win = Ti.UI.createWindow({
        layout: 'vertical'
      });
       
      var picker = Ti.UI.createPicker({
        type:Ti.UI.PICKER_TYPE_DATE,
        minDate:new Date(2009,0,1),
        maxDate:new Date(2014,11,31),
        value:new Date(2014,3,12),
        font: {fontSize: 40},
        top:50,
        useSpinner: true
      });
       
      win.add(picker);
      win.open();
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                bijuexalture Biju pm
                Reporter:
                pwang Ping Wang
                Reviewer:
                Vishal Duggal (Inactive)
              • Watchers:
                0 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Integration