03-11-2009 06:24 AM
I suspect you are swallowing all the navigationMovememt() in your ListField. I suggest you call super.navigationMovement where the absolute value of dy is >= absolute value of dx, i.e. the use has moved the trackball more in the up and down direction than in the left/right direction.
Have you tried this on the Storm yet?
03-11-2009 07:02 AM
nopes noy yet tried it on Storm.
here is how i am using navigationMovement
public boolean navigationMovement(int dx, int dy, int status, int time){
if(dx<0){
if(currentColumn!=0)
currentColumn--;
}
else if(dx>0){
if(currentColumn<2)
currentColumn++;
}
}
sorry , i didnt get your solution
03-11-2009 07:22 AM
Sorry, just coded this off the top of my head, may not even compile, but should show you what I mean.
public boolean navigationMovement(int dx, int dy, int status, int time){ if ( Math.abs(dx) > Math.abs(dy) ) { // User has scrolled left/right more than up/down, assume they want a horizontal movement if(dx<0){ if(currentColumn!=0) currentColumn--; } else if(dx>0){ if(currentColumn<2) currentColumn++; } return true; } else { return super.navigationMovement(dx, dy, status, time); } }
03-11-2009 07:32 AM
03-11-2009 07:58 AM
Hey there is one more problem
now consider i am at 3rd row and now if i press right key.. the focus goes to first line ..
i want the scene like .. even if m on 3rd or 4th row.. and i pressed right kew.. the columns should move and the row focus is yhere itself..
any solution??
03-11-2009 08:07 AM
03-11-2009 08:09 AM
03-11-2009 08:20 AM
03-11-2009 08:31 AM
Simon - that is what he is doing.
spring_suvarna. In your previous post you said
"now consider i am at 3rd row and now if i press right key.. the focus goes to first line .."
What is this right key you are pressing?
03-11-2009 08:39 AM
on keyboard we have Right Left Up and down . ok?
now i press down key for three times.. so right now m at 3rd record .. fine?
now i press right key .. at this event the focus changes from 3rd record to first one. this should not happen. on press right key.. the columns should move in a way that peter_strange have told me.. which is running successfully ..