03-15-2009 07:03 AM
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
Solved! Go to Solution.
03-15-2009 07:32 AM
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".
03-15-2009 09:17 AM
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
03-16-2009 03:55 AM
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
You can also refer to the JavaDocs for net.rim.blackberry.api.messagelist.ApplicationIndi
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".
03-16-2009 07:02 AM
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
03-16-2009 07:27 AM
03-16-2009 07:40 AM
Thanks very much for all help i have in this Thread.
Thanks all