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. viewing logcat from phone not possible in Android 1.5?

Hi,

After installing Android 1.5 on my ADP I can't check logcat directly from
the phone.

When running 'su', in terminal, I get 'uid XXXXX not allowed to su'.
'logcat' gives permission denied /dev/log/main.

If I get an exception/force close in any of my apps I'd like  to be able to
check the stack trace/logs without having to connect it to a computer. I
guess it could be possible to check any created traces.txt files later.

I know I can check logcat with adb logcat, or adb root shell, logcat.


Is there a way of checking logcat directly from the phone?

Thanks,

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

2. How Do I Compile in "Release" Mode?

I am following the instructions on code signing on the Android
Developer site, and it mentions that if you specify that you want to
compile in Debug mode, it automatically signs the resulting file with
a debug key.  It also says that if you specify that Eclipse should
compile in Release mode, that you can use the Export Wizard to
generate a private key and handle the distribution signing.

Can someone point me to the setting in Eclipse for Release vs. Debug
compiling.  When I use the Export Wizard, I am only given the option
to export unsigned.  I am pretty sure I am stuck in Debug mode, since
my app has no problem running in the emulator or my tethered G1.

Thanks,

Mike
--~--~---------~--~----~------------~-------~--~----~

3. Progressive streaming/download on android

4. how to enable log of Android OS code - opencore

5. viewing logcat from phone not possible in Android 1.5?

6. code for sending email using a android application

7. What units does Location.getAltitude() return in?