Scrolling in HorizontalScrollView

by Arjun » Tue, 07 Dec 2010 07:43:07 GMT


Sponsored Links
 Greetings,

I have a linear layout inside a horizontal scroll view.  linear layout
has n number of images.

I am facing problem with horizontal scrolling, As soon as the user
flings, depending upon the velocity the scroll view scrolls. But my
requirement differs with the default horizontal scroll view
scrolling.  My requirement is "whatever may be the fling velocity"
user has to be shown the next three images depending upon the fling
direction

Hence I have extended Horizontal scroll view and override fling, such
that I can scroll to the next three images, by specifying the number
of pixels it should move horizontally using scrollTo(px,px);

The above operation is not giving the expected behavior. Any thoughts
on this would be really helpful.

Thanks,
Arjun.

-- 



Re: Scrolling in HorizontalScrollView

by TreKing » Wed, 08 Dec 2010 22:56:40 GMT


 



Why not use a Gallery?

-------------------------------------------------------------------------------------------------
TreKing < http://sites.google.com/site/rezmobileapps/treking> ; - Chicago
transit tracking app for Android-powered devices

-- 


Sponsored Links


Re: Scrolling in HorizontalScrollView

by prudhvi » Fri, 14 Jan 2011 21:18:41 GMT


  http://www.codeshogun.com/blog/2009/04/16/how-to-implement-swipe-action-in-android/ 

theres a builtin widget called viewflipper.. could be usefull a lot.





-- 



Other Threads

1. Error installing ADT 0.9

I'm using Win XP and I'm trying to install ADT 0.9 for Eclipse (In
order to try SDK 1.5). I downloaded the ADT-0.9_pre.zip file and
everything. I follow the steps provided there:
http://developer.android.com/sdk/preview/

When I add the site, I choose "Archive" and browse to the file. When I
press OK, it get this error:
"No repository found at jar:file:C:\ADT-0.9_pre.zip!/"

Also, I noticed that my remote site (https://dl-ssl.google.com/android/
eclipse/) doesn't work anymore. To make it work, I need to use http
instead of https.

Anyone encountered this issue installing the new ADT? If it's because
of my firewall or something of the sort, I don't have access to it
(I'm living in my university's residences, and the network
infrastructure is provided by them).

Thank you.

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

2. Screen lock turns of the accelerometer.

What I'm looking for:

 ** A way to read the accelerometer even when the screen is locked. **

Currently it seems that locking the screen automatically turns off the
accelerometer.
I looked around for quite a while and didnt find any solution for
that. Is that intentional?
It would be really helpful to know if this is how it is or if I just
didnt find the solution for that so far.

thank you for any help on that
(and as I said, even "doesnt work right now/on purpose/.. is a very
helpful answer for me :) )

best regards,
mark

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

3. Ways To Monetize Free Android Application

4. Anti-SMSishing discussio

5. People uploading our applications on Android Market without our agreement

6. AutoCompleteTextView and Theme.Light

7. vold or mountd