Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Create a colour ListField

by BlackBerry Development Advisor ‎02-12-2010 03:42 PM - edited ‎09-16-2010 03:44 PM (5,100 Views)

Summary

 

This article applies to BlackBerry® wireless devices based on Java™.

 


Description

 

The default ListField implementation on the BlackBerry device does not differentiate colours of rows. All rows have the same background colour, which is usually white. To add a splash of colour to your application or to differentiate rows, colourize the ListField so that every other row would appear in a different colour. For example, you could modify the ListField so that every other row appears with dark blue colouring, while the highlighted row appears with light blue highlight as shown in this screen shot with the first row highlighted. This screen shot was taken from a BlackBerry 7290 Wireless Handheld™ running BlackBerry Device Software 4.1.

 

DB-00472_0.jpg

 

 

 

 

 

 

 

 

 

 

 

 

To download the source code of this sample application, see the ColourListField.zip file.

Contributors
Users Online
Currently online: 19 members 687 guests
Please welcome our newest community members: