Blackberry JAVA DEVELOPMENT ENVIRONMENT - - GPS AND MAPS - DEVELOPMENT GUIDE Instrukcja Użytkownika Strona 8

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 16
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 7
Feature Description
By default, detection of pinch gestures is not enabled on screens. To enable pinch on a screen,
set the screen property Touchscreensettings.DETECT_PINCH to 1. You can change the
value of this property any time, not just when creating the screen.
enhancements to
picture scroll field
You can use the following new methods in the PictureScrollField class to enhance the
look and feel and functionality of the PictureScrollField UI component:
setForegroundAlpha() sets focus and unfocus foreground alpha
setImageDistance() sets the distance between the vertical centers of two adjacent
images. You can also set the image distance to be a negative value to overlap the images.
setPaddingImageBottom() sets the padding below the images in pixels
setScalingRegion() sets the distance from effects region edge to the center
setScrollbarVisible() sets whether or not the scroll bar visible
setStyle() sets the Field layout height style
updateImage() update the Bitmap image of ScrollEntry at index of
ScrollEntry array. You can now update images at runtime.
Home screen shortcuts You can create shortcuts and add them to the Home screen on the BlackBerry device by using
the new Shortcut API that is provided in the net.rim.blackberry.api.homescreen
package. When a user clicks a shortcut, the application that is associated with the shortcut opens
within a specified context. For example, you can create a shortcut to a contact so that when a user
clicks the shortcut, the contacts list application opens and displays the specified contact. You
could create shortcuts for a wide variety of reasons. For example, shortcuts to browser bookmarks,
map location, or playlists.
You can use the following classes and interfaces to create a shortcut:
ShortcutProvider provides a factory method for creating shortcuts
Shortcut interface that encapsulates a shortcut and specifies information about the
shortcut such as the icons to associate with the shortcut and the text to associate with the
shortcut
HomeScreen provides methods to add shortcuts to the Home screen and check if shortcuts
exist
ShortcutEventListener interface that provides methods to manage opening,
changing, and deleting shortcuts
Location specifies where the shortcut should appear on the Home screen
RIM Confidential and Proprietary Information - Beta Customers Only. Content and software are subject to change.
6
Przeglądanie stron 7
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16

Komentarze do niniejszej Instrukcji

Brak uwag