02-26-2013 04:01 AM
I have a screen with two HFMs.In both the HFMs i am adding some images.The problem is that,when i am in the second HFMs and scroll to the last image,my first hfm again starts scrolling,which i want to stop.
Solved! Go to Solution.
02-26-2013 04:09 AM
02-26-2013 04:22 AM
What exactly we need to put insid ethe overrided methods to stop the scroll
02-26-2013 06:54 AM
hope below code solves your problem.
protected boolean navigationMovement(int dx, int dy, int status, int time) {
int focusIndex = getFieldWithFocusIndex();
if (focusIndex == 0 && dx < 0 && dy == 0) {
return true;
}
if (focusIndex == this.getFieldCount() - 1 && dx > 0 && dy == 0) {
return true;
}
return super.navigationMovement(dx, dy, status, time);
}
02-26-2013 07:00 AM
Thnx it worked like a charm
02-26-2013 07:08 AM
02-26-2013 09:46 AM
Additional information in this Thread: