[android-developers] Re: A question on Gallery

2009-12-04 Thread Abhi
This group has been disappointing me last couple of weeks Where are all the experts? C'mon, you can do better than this. Abhi On Dec 3, 4:37 pm, Abhi abhishek.r.sha...@gmail.com wrote: Hi, I am trying to do the following in my app: 1. Open Gallery just the way it is on the phones

[android-developers] Re: a question about gallery

2009-02-25 Thread gymshoe
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

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
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

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
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

[android-developers] Re: a question about gallery

2009-02-23 Thread gymshoe
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

[android-developers] Re: a question about gallery

2009-02-23 Thread quill
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

[android-developers] Re: a question about gallery

2009-02-22 Thread quill
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