O'Reilly logo

Kicking Butt with MIDP and MSA: Creating Great Mobile Applications by Jonathan Knudsen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10. Custom Items

A middle ground lies between the easy path of canned LCDUI screens and the raw bravado of using Canvas. Custom items are your own items that can be placed into standard forms.

A custom item is very similar to a canvas, but it has some additional equipment to allow it to be part of a form. Create a custom item by subclassing javax.microedition.lcdui.CustomItem.

10.1. Custom Item Sizing

The size of a custom item is determined by the form. In your own implementation, you must specify a minimum and a preferred size for your custom item. The minimum is the smallest size your item can possibly be. The preferred size is the size at which your item will look its best and operate most smoothly.

The minimum and preferred sizes refer to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required