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
New Developer
Posts: 27
Registered: ‎01-11-2009
My Device: Not Specified
Accepted Solution

[UI Enhancment]

Dear Experts,

Regarding blackberry UI api's i have some Questions.

1-i see that the MainScreen extends FullScreen.

is that mean i can't make it not full screen and if so that mean i should extend screen direct if i want my application UI not full screen ?

2- i have a list added to my screen , can i have small icons beside each item in this list...i try to add it but there is no public funciotn i saw on the list give me the ability to do that.

and if there is work around please specify.

Iam using ObjectListField and adding String object on it.

3- i see in the mainscreen that i can specify background, that mean is there ability to fill colors in the background , like overrid the paint function and draw the background color, and the same issue with the list like specify the text color and the selection color.

 

Thanks very much for help.

Wael Nabil

Developer
Posts: 432
Registered: ‎02-23-2009
My Device: Not Specified

Re: [UI Enhancment]

You can add icons to your list elements using drawListRow() method. Use graphics.drawBitmap() to draw image in each row.

 

Yes you can specify background color of objectListfield.

 

Use MainScreen or FullScreen as your requirement. MainScreen will handle all the events which are not handeled by app like navigation, scrolling and touch events.

 


Press the kudos button to thank the user who helped you.

If your problem was get solved then please mark the thread as "Accepted solution".

 

 

 

 

Deepesh Gupta
New Developer
Posts: 27
Registered: ‎01-11-2009
My Device: Not Specified

Re: [UI Enhancment]

Dear Deepesh,

Thanks very much for ur help,

I will try what u told me about the list icons.

what about display the screen in NOT Full screen mode, i want the status header of the home appear , the clock and the network and like that.

is it exist on MainScreen or i should extends screen class direct.

 

Thanks

Wael Nabil

 

Developer
Posts: 432
Registered: ‎02-23-2009
My Device: Not Specified

Re: [UI Enhancment]

You can do this in version 4.6.  Have a look at the "Working with indicators for an application" in the 4.6 JDE Development Guide. You can use this link

 

http://na.blackberry.com/eng/support/docs/subcategories/?userType=21&category=BlackBerry+Java+Applic...

 

You can also refer to the JavaDocs for net.rim.blackberry.api.messagelist.ApplicationIndicator.

 

 

 


Press the kudos button to thank the user who helped you.

If your problem was get solved then please mark the thread as "Accepted solution".

 

 

Deepesh Gupta
New Developer
Posts: 27
Registered: ‎01-11-2009
My Device: Not Specified

Re: [UI Enhancment]

Dear Deepesh,

Thanks very much, u already give me a hint i wasn't know.

while my Question was  "I want my Screen to be NOT Full Screen".

my main UI is extends MainScreen and MainScreen extends FullScreen.

i want to display Not full screen.

So should i extends Screen class direct

or there is flag can be set on the MainScreen to display it not full screen,

 

Thanks

Regards

Wael Nabil

Developer
Posts: 16,986
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: [UI Enhancment]

you have to extend screen, there is no such flag on the mainscreen.
----------------------------------------------------------
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
Highlighted
New Developer
Posts: 27
Registered: ‎01-11-2009
My Device: Not Specified

Re: [UI Enhancment]

Thanks very much for all help i have in this Thread.

 

Thanks all