Changes

Jump to: navigation, search

BlackBerry : Develop Simple Apps

974 bytes added, 13:14, 24 February 2011
no edit summary
The sample application demostrates how to scale an original Bitmap image into new Bitmap objects, how to apply filters that help reduce the pixelated appearance of a scaled Bitmap image, and how to preserve the aspect ratio of the image.
---------------
 
=== Custom Buttons ===
[http://docs.blackberry.com/en/developers/deliverables/7721/Custom_buttons_sample_app_overview_546026_11.jsp Overview]
 
The custom buttons sample application demonstrates how to extend the Field class to create a variety of different button UI components.
 
The sample application demonstrates how to create the following types of buttons:
* rectangle
* triangle
* octagon
* rectangle with a fixed width
* rectangle with a fixed width and a long text label
* rectangle with a full screen width
* rectangle with a color background
* rectangle with a .bmp image as the background
 
In addition to creating and displaying these custom buttons, the sample application also demonstrates how to attach listeners to these custom buttons. Listeners are components that execute code when an event occurs. In the sample application, when you click one of these buttons, a dialog box appears with text specifying which of the buttons you clicked.

Navigation menu