HorizontalScrollView snap to page?

by Jeffrey Sambells » Fri, 25 Sep 2009 22:09:45 GMT


Sponsored Links
 Is there a way to make a HorizontalScrollView "snap" to a page? Let's say I
have a hsv with an overall width of 800 but only 200 viewable. I'd like to
have the scroll position snap every 200 pixels so that the resting position
is always 200 offset from the origin (thus always displaying a full "page").
Is there an easy way to do this or do I have to somehow override the gesture
interactions?

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. saving files in external folder

i'm saving files in

sdcard/Android/data/<packagename>/files


the problem is that everytime i download the app to
the phone - the folder and it's contents get deleted.

anyway to prevent that.

ideally i would want that to happen only when the
user uninstalls.

for debugging and user app upgrades - i'd like
the folder and it's contents to remain.

-- 

2. Icons to support different screens


I never do graphics type programming so I have tended to ignore most of the posts on this list regarding anything to do with images and graphics, but now it seems I need to know more than I do know :). I'm designing a screen that will need to look good on all phones, and all resolutions. It's for displaying in a list view, and there will be a small graphic for the summary view, and a larger graphic for the detail view. Normally I use a 32x32 (res 72x72ppi).png for the summary view which looks good on my G1. The second image is for the detail view and it basically should fill the entire width of the screen (roughly, it's ok if it doesn't use the entire width as long as none of it is chopped off). The size I use for my G1 is 468x60. So, the question for the guys that really know this stuff is: What sizes do I need to make these images to support all screens and densities with the fewest number of images? I know that the answer is a little subjective, but I remember seeing a post with a link to a page that recommended 3 different images for the different screens (and it seemed to make sense when I read it), and I think but don't remember for sure that then you would need 6 layouts to support those with both landscape and portrait orientations.... Any links, advice welcomed :). Thanks. -- Sincerely, Brad Gies ----------------------------------------------------------------------- Bistro Bot - Bistro Blurb http://bgies.com http://bistroblurb.com http://ihottonight.com http://forcethetruth.com ----------------------------------------------------------------------- Everything in moderation, including abstinence Never doubt that a small group of thoughtful, committed people can change the world. Indeed. It is the only thing that ever has - Margaret Mead --

3. result of the authentication attempt

4. MediaPlayer and video problem

5. How to stream video

6. ability to temporarily disable permission

7. Turning Location Updates Back On After Turning Them Off