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

Reply
Trusted Contributor
Posts: 200
Registered: ‎02-22-2010
My Device: BlackBerry 9550
My Carrier: Airtel

how can achieve custom image like this...

1674i2FCEE9F025DDE299

how can i achieve this type of text in listfield? is it possible or what should i use for it? any suggestion for it. i want to use this in jde 4.5.

Swapnil G.
Trusted Contributor
Posts: 200
Registered: ‎02-22-2010
My Device: BlackBerry 9550
My Carrier: Airtel

Re: how can achieve custom image like this...

plz help me find solution
Swapnil G.
Developer
Posts: 16,985
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: how can achieve custom image like this...

its all about custom painting.

first you should set the rowheight to the height you want to use, for example 8 times fontheight.

 

you can add the rounded borders later.

draw your bitmap at x = 5, y = 5

draw your text at 10+bitmapwidth and y depending on the line.

set the first line bold, the rest normal.

 

see some drawListRow examples if you want to understand better.

----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter