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.
精彩评论