For RIM and BlackBerry partner use only. Beta documentation. Content and software are subject to change.
27
3: Displaying location information on a BlackBerry device
Setting the display size of a map in your application
A BlackBerry® Application can control the size of a MapField on the display screen. For example, the application
can change the size of a
MapField to make other UI components visible on the screen of a BlackBerry device.
If you set the preferred size of MapField, you override the dimension values passed in layout(). The height and
width values are in pixels.
Set the display size of a MapField
>Invoke setPreferredSize(int preferredWidth, int preferredHeight).
To view complete code samples for the BlackBerry® Java Development Environment, visit www.blackberry.com.
Comentarios a estos manuales