09-26-2011 08:16 AM
Hi!
I need to make UI for my application like a Blackberry application menu. I want to show 9 buttons on the screen (3 rows a 3 columns). Like that:
[1] [2] [3]
[4] [5] [6]
[7] [8] [9]
I made it this way : I had add 3 HorizontalFieldManagers to screen and each of them has 3 buttons. Now it looks like as I need, but I have issue with fucus moving. If I test it on device with trackwhil, it works fine. But On devices with trackpad it not works as I need. For example, if I have selected button [7] and press UP, then focus move to button [6]. But I need to move focus to button [4].
Perhaps it is not best solution... Does any body have the same interface? How to do it worked properly?
Thanks!
Solved! Go to Solution.
09-26-2011 08:30 AM
09-26-2011 09:19 AM
You might want to use GridFieldManager (or TableLayoutManager for OS < 5.0) instead of your collection of HorizontalFieldManagers. I'm pretty sure they work with touchpad the way you need. Never tried or heard anything about their functionality with trackwheel, though.
09-26-2011 10:37 AM - edited 09-26-2011 10:38 AM
Why don't you take GridFieldManager;
Look this link which is posted by me:
http://208.74.204.192/t5/Java-Development/GridFiel
On there: you write like this:
grd.add(new LabelField("[1]"));
or
grd.add(new LabelField("["+i+"]"));//Here " i " is integer value;
=================================================
Feel free to click THUMB symbol.
09-27-2011 12:59 AM
Thanks a lot! I will try it today!
09-27-2011 01:06 AM