Search code examples
titaniumtitanium-mobiletitanium-alloy

Font not sizing in Date Picker


I am using 3.1.3.GA sdk, Alloys and 2.3.4 Android Emulator. I have created a Date picker and its size is too small so as specified I used fontSize attribute to increase its column value text size but not worked as expected. My code, index.js

var win = Ti.UI.createWindow({
    layout: 'vertical',
    modal: true
});  
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),
    top:50,
    width: 300,
    height: 500,
    font: {fontSize: 40},
    useSpinner: true
});

win.add(picker);
win.open();

Am getting a UI like this. I need to increase the fontSize of the picker column, is it possible or its a bug?. In jira tickets its mentioned as solved. Any suggestions?.Thanks in advance.


Solution

  • This has not been implemented yet. The ticket you refer to has a status of "Open."

    Also this property is not mentioned anywhere in the Picker docs except for PickerRow, unfortunately only for MobileWeb and Tizen.

    If you really need this, it would not be too difficult to write your own custom picker by extending the TiUiNativePicker class.