开发者

Custom duration field on blackberry

Does anyone hav开发者_如何学运维e a duration field they have created for Blackberry? The field needs to allow the user to select days, hours, minutes; needs to build in OS 4.5 and support touch interface manipulation (on the Storms).


You could use some kind of workaround, using a DateField.
On a screen, try this

  SimpleDateFormat sdF = new SimpleDateFormat("dd:HH:mm");
  DateField hourMin = new DateField("Duration (dd:HH:mm)", 0, sdF);
  hourMin.setTimeZone(TimeZone.getTimeZone("GMT"));
  add(hourMin); 

SimpleDateFormat and DateField should be both available in 4.5 and capable of handling touch events.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜