10-28-2011 07:52 PM
Hi all,
i've tried to find the way to use setHorizontalScroll() method but it seems not to work in anyway i try.
when i call setHorizontalScroll(100,true); my HorizontalFieldManager is still the same
and when i call getHorizontalScroll(); it returns 0
i'm not quite sure that " setHorizontalScroll(int position,boolean animate) is the method that will automatically slide HFM to position when animate is true
but if it is, i still don't know how to use it
it would be really nice if someone told me how to use it
Thank very much.
Solved! Go to Solution.
10-28-2011 09:36 PM
Check for any exceptions. Are you sure you are issuing it from EventThread?
10-29-2011 03:06 AM
It will work..
As per my concern it willn't give you the effect what you expecting if you override the touchEvent( )..
are you overriding the touchEvent( ).?
10-29-2011 07:11 AM
Thank you for your reply
i did not override TouchEvent
should i have to override any method to make setHorizontalScroll() working?
it's a bit basic question but ireally don't know about it
thank you
10-29-2011 01:17 PM
tklanilkumar wrote:
It will work..
As per my concern it willn't give you the effect what you expecting if you override the touchEvent( )..
are you overriding the touchEvent( ).?
touchEvent has nothing to do with this. Again - can you check whether setHorizontalScroll throws any exceptions? This would be the most probable explanation why it doesn't do anything.
Besides - is your Manager wide enough (virtual width, that is) to need scrolling? Does it have HORIZONTAL_SCROLL style bit set?
10-29-2011 10:35 PM
Thank for your reply
i can make it now, thank you very much
10-29-2011 11:38 PM
Could you at least describe what was the problem? And mark the thread as solved?