开发者

Custom duration field on blackberry

开发者 https://www.devze.com 2023-01-16 21:59 出处:网络
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 interfa

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

精彩评论

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

关注公众号