.

BlackBerry API. Customizing BasicEditField

December 22, 2007 09:37 by Jorge

When we first started developing BlackBerry applications, we wanted to have a more visually appealing BasicEditField than the “plain” implementation RIM provides. Having developed Palm applications in the past, we were used to the dotted bottom border Palm edit fields have. We decided to adopt this look and wrote a derived class that adds the border to a BasicEditField.

Here’s a screenshot of one application that uses our modified field.



This field works particularly well in scenarios where the text entered doesn’t take more than one line, like the username/password combination shown above. When more than one line is present, the border gets added only to the last line. This is OK according to our needs, but you can easily modify the code if you prefer a different behavior.

Download the source code for this article from the Downloads page.

I hope you find this field useful. Please drop me a line if you know of any other approaches.

Actions: E-mail | Permalink | Comments (0) | Trackback

Related posts


Add comment


  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview



October 6, 2008 20:48