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. Returning Results from Sub-Activity

Hello,

How do I know whether a third party's sub-activity will call the
setResult method to properly return an Intent with a URI as needed?

If I didn't implement the sub-activity's method, then how do I ensure
that it will return a result after I invoked the sub-activity by
calling startActivityForResult?

I had thought that the method startActivityForResult will always
enable return of an Intent object from the sub-activity.  But, that
appears not true.  Would it be possible that startActivityForResult
could return absolutely no result whatsoever?  If so, how I program my
Activity class to guard for such result?  Please advise because surely
my class must prepare for the case if a result is returned.  Thanks.

J.

-- 

2. Error using a custom text for alert dialog

my requirement was to invoke a alert dialog with a string text that
gets modified dynamically when the user hits a button every time

for example:

string str="you have clicked "+ count + "times";

where count is an integer variable that gets incremented every time
the user hits a button.

and when i assign this string to the text of an alert-dialog ,i get
the alert-dialog at runtime  but with an empty text value...ie. a
{*filter*} alert-dialog with just OK cancel button.

-- 

3. How to display 'Column title' on the top of List ?

4. para de mandar essas mensagens pro mau hotmail

5. webview - open html page with a specific select value selected

6. cancelar

7. "Unable to start WiFi" after flash a new customized kernel