I think you could try writing your own custom MyGallery class
extending Gallery.
Then you can @Override the onFling() method which can either use to
directly call your ImageSwitcher method, or if that isn't convenient,
just have the onFling() method set a specific variable to true. Then
in your o
Hi, Jim,
Thank you, thank you for your enthusiasm.
Just as you said: "It seems to occur when the "flinging"
is slow - either on starting the fling, or near its end... " when
you setCallbackDuringFling(false); It works but is not good enough.
Maybe there are some relationships between this and the
The last post I made is incorrect. Sorry, I am just sorting this out.
When you fling a gallery, Android does call the onFling() method,
however it also calls the onScroll() method.
In my application it calls the onScroll() method multiple times
(variable) and the onFling() method once. Not sure
By the way, when you "fling" the gallery, Android does not call the
onFling() method.
Flinging the gallery calls the "onScroll()" method of gallery.
This is probably why changing setCallbackDuringFling(false) did not
work and wouldn't be expected to work.
Also, I was wrong in my first post. I do
H. I don't know enough to solve your ImageSwitcher problem.
Intuition tells me that there may be no easy solution to fix
ImageSwitcher if the problem is due to the way Android handles the
fling calls...
But I have to ask: Why do you use the gallery, but then also display a
larger image next t
Hi, Jim,
Thank you for your help. Maybe I hadn't explain my question clearly
(my English is poor:( ). The images I loaded are from hard disk, and
they are large. Every time I select an image in the gallery, it
displays a bigger one in the ImageSwitcher, I wrote another thread to
do this. The foll
I am not sure why you are getting onItemSelected() activated more than
once.
I don't, and my code is slightly different. First, the onItemSelected
() method is inside the OnItemSelectedListener class. Also,
I don't specifically change the setImageResource() at all. The API
seems to handle changi
7 matches
Mail list logo