11-12-2012 06:53 AM
I have a list of images which i am adding in a HorizontalFieldManager.Each Image occupy the entire screen.If i scroll the entire view is scrolling and focus is also going to 4-5 images.I want that when i scroll forward or backward only the image image should come to view and it should not scroll the entire view.Any idea how can i achieve it?
11-12-2012 06:57 AM
Have a separate HFM with just your images in it.
If this is not an answer, please explain your problem with a little more detail, specifically explaining which Managers you use and how they are contained, which Managers are scrolling and which you want to scroll.
11-12-2012 07:02 AM
Actually i am taking a HFM and adding it to the mainscreen.In that HFM i am adding 5 images with each image occupying the entire screen.I have made HorizontalFieldManager as (Horizontal_Scroll).Now say when i scroll forward it scroll and keeps scrolling till the last image,same for backwrad scroll.What i want is that,when i scroll,only the next image should come to view,again wehn i sroll the next image should come to view instead of scrolling till the end
11-12-2012 07:22 AM
Are the images focusable? If not, then try it with them being focusable.
Does this happen when you use the trackpad? Does this happen when you swipe with your finger?
11-12-2012 12:33 PM
OK, I think we are in a position to clarify your requirement. I think the problem only happens on touch screen devices - you do not see it on trackpad devices. On touch screen devices, i think you see one of these two as an issue:
1) when the user swipes the image, you only want the scroll to move a single image
2) when the user swipes the image, the scroll stops displaying part of two images, but you want to have it dcentred on one image.
Which of these is your problem, or have I got it wrong?
11-12-2012 12:45 PM
I am not sure how this could be done, I have never tried to do this.
If I was trying I would first try the following:
a) Turn the Inertial Scrolling off
b) Set the quantization so that scrolling will only go to full images:
<manager>.setHorizontalQuantization(<width of image>)
Let us know how you get on with this!
If this does not work, we can try overriding touchEvent.