Actually I wanted only one image to be scrolled at a time when we
swipe with the finger. Like the image viewer in the iPhone. Or like
the desktop screens that android has. So all i did is, I overrided the
onFling event and just returned true. So now, if i swipe with my
finger, i get only the next or the previous image. But it now doesn't
respond to the dpad. I dunno what is wrong. I tried requestFocus() but
nothing seems to work. Yes u r right. I dint want scrolling in
gallery. Any suggestions?

How do i get the default functionality of the gallery view by just
extending it? i.e. the dpad left and right keys.. Pls reply fast. I m
stuck here.

On Apr 13, 10:11 pm, Marco Nelissen <marc...@android.com> wrote:
> How did you get rid of the onFling event? It sounds like whatever you
> did to achieve that also broke scrolling.
>
> On Mon, Apr 13, 2009 at 8:22 AM, Alekh <alek...@gmail.com> wrote:
>
> > I have created a child class from the Gallery view, named MyGallery. I
> > did this because I wanted to get rid of the onFling event in the
> > gallery view. Having that achieved, it lead me to a different problem.
> > Scrolling the Gallery with the Dpad doesn't work now. When I tried
> > using the original Gallery class, the dpad works fine. But when I
> > extend the Gallery and use my custom gallery class, the dpad stops
> > working. Am I missing something? Please help.
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers-unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to