12-07-2012 09:56 AM
12-09-2012 05:33 AM
"I haven't much experience with blackberry."
Unfortunately this is going to make your screen a little difficult. There is no very simple way to make the screen you are trying to make. And in fact there a number of ways to make it, some more efficient, but more complex than others.
I suggest we divide the work into two parts
a) Create the Buttons
b) Position the Buttons
This is assuming that you already know how to create an Application in Blackberry and have that Application display a Screen. If you do not know how to do that, then the place to start is as usual, the Hello World sample.
We should focus on (a) first.
The screen shot suggests that you want images displayed. That the user can click, and that these will show focus by having a 'clue' border. The easiest way to achieve this is to create the image, add it to a BitmapField to display the image, and then use
to give some space around the image for focus to be seen. So work on that.
Once you have that you need to convert this BitmapField into a button. This is achieved by overriding navigationClick. I think there are numerous examples of this in the forum so won't repeat this code here.
Finally you need to tie this click up with whatever you are tying to do next. This is up to you.
Once you get to this stage then you will have 4 image buttons displayed vertically on the screen. Then you can ask the question "how do I get these in the centre". And you will understand more about Blackberry processing and so be better informed regarding the answer.
12-09-2012 11:49 AM
The easiest way, assuming you don't want to translate the label, is to make the image include the text. If you do want to seperate them, then add the BitmapField and a LabelField with the text set as you want to a HorizontalFieldManager, then add the HorizontalFieldManager to the screen.
12-10-2012 09:37 AM