Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

TimePicker minuteInterval on Android doesn't seem to work

$
0
0

I'm trying to use a Titanium.UI.Picker of type PICKER_TYPE_TIME and I'd like to make the minutes adjust in increments of 5. Whenever I try to set the minuteInterval property, no change in behavior is noted at all. I've tried including it in the createPicker call as well as the showTimePickerDialog, but it never seems to stick. I've also tried using the useSpinner=true property in combination with minuteInterval but nothing seems to work. I really hope there is something obvious that I'm doing wrong. Thanks for looking.

Environment Info

Titanium SDK
        CLI version 3.2.0, Titanium SDK version 3.2.0.GA
        Using Alloy Framework
    Platform and Version
        Android version 4.1.2
    Device
        Samsung Galaxy Tablet
        Hardware Version: I915.02
        Model Number: SCH-I915
    Host OS
        Windows 7 Professional
        Version 6.1 (Build 7601: Service Pack 1)
    Titanium Studio Version
        Titanium Studio, build: 3.2.0.201312191547
Example Code
var picker = Ti.UI.createPicker({
        type:Ti.UI.PICKER_TYPE_TIME,
        useSpinner:true,
        minuteInterval:5
    });
    picker.showTimePickerDialog({
      title: overrideTitle,
      callback: function(e) {
        if (!e.cancel)
          callback(e.value);
      },
      format24:true,
      value:initialValue
    });

Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>