02-19-2010 01:23 PM
Its almost over... One more question left
As mentioned earlier (also according to code)
1. There are 3 buttons in first HorizontalFieldManager
2. There is a Text in next HorizontalFieldManager and so on.
On First one, when we scroll left or right, we can scroll on to buttons accordingly
When we scroll up and down, we will scroll up and down on to different FieldManagers accordingly
Now my problem is
On First HorizontalFieldManager, I scroll to right most button and then I press DOWN Key to go to next FieldManager
Now when I Scroll UP, Last button of First FieldManager is highlighted.
Where as I want to save the Last Highlight Position (i.e. First Button) and when I scroll UP, I should go to last highlight button, rather than Last button in the FieldManager
02-19-2010 04:36 PM
This question has been asked before, and I can't remember the answer.
I think you have to override onFocus and onUnfocus in the HFM. In onUnfocus, you need to remember the Field that had focus, in onFocus you need to put it back there, using setFocus. I think that is it.
However I'm sure there are Threads in this forum that discuss this. Sorry no idea what you would search for, but the question has definitely been asked and solved a number of times.
03-04-2010 01:22 AM
I understand that I can override onFocus and onUnFocus and set the state of buttons as focus. but I don't know how to remember the last active button while leave HorizontalFieldManager.
Can you please help in this context