How to scroll Gallery Widget manually

by alex » Sat, 14 Mar 2009 02:10:34 GMT


Sponsored Links
 Hi,

I'm working on a little Player with Playlist and use the Gallery
Widget to visualise the Playlist.
I tried to scroll the Gallery Widget manual to an active item, but the
Widget don't support any functions to do this.
There are several methods in the Gallery.java class

movePrevious()
moveNext()
scrollToChild( int pos )

but the visibility of this methods is default or private. So i can't
override this functions, if I Inherit from Gallery class.

can any one please help for a solution to scroll the Gallery
manual ???

Thanks,

Alex

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



How to scroll Gallery Widget manually

by Gesh » Sun, 15 Mar 2009 18:15:30 GMT


 Read the documentation more carefully.
Gallery extends several other classes that offer exactly the
functionality you are looking for.



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


Sponsored Links


Other Threads

1. set imageView

hi all,

I have a imageView1 and imageView2,
then i want to set imageView1 to imageView2,
but use the following API will not do this,
such as:
setBackgroundResource(int resource id)
setBackgroundDrawable(drawable d)
setImageBitmap(Bitmap b)
setImageDrawable(drawable d)
.....etc


so how can I do?

thanks

2. Suggestion: Math floating point library for Android

I need maths for my game physics and lots of them, so I use the...
Math library. And guess what? I never casted so much to floats in my
entire life. And i know how costly it is to use doubles on an embedded
device because I read the performance optimization page in the google
android sdk docs. So I am wondering if we couldn't get a Math package
with functions taking and returning floats instead of the default
doubles. e.g. Math.sinf Math.cosf.

Thanks!

Philip

PS: It's not my idea, Cocoa on the iPhone does it already.

3. Elliptic Curve cryptography in Androi

4. Help me!! The fb0 no space left on device..

5. Problem reading from files when using within service.

6. change the imageview dynamically in the listview

7. can write youtube api on android?