Gallery Child View Problem

by Alekh » Tue, 14 Apr 2009 00:58:49 GMT


Sponsored Links
 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.

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



Gallery Child View Problem

by Marco Nelissen » Tue, 14 Apr 2009 01:12:09 GMT


 How did you get rid of the onFling event? It sounds like whatever you
did to achieve that also broke scrolling.





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


Sponsored Links


Gallery Child View Problem

by Alekh » Tue, 14 Apr 2009 12:29:08 GMT


 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.




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



Gallery Child View Problem

by Alekh » Tue, 14 Apr 2009 13:02:48 GMT


 Ok the problem has been solved!!

When extending the GalleryView, if we set the spacing between images
using the setSpacing(), the Dpad doesn't allow scrolling. If we don't
use setSpacing(), the Dpad works as intended.

I would like to know if this is a bug or is it designed in this way.
Coz I don't understand why the dpad events dont work when setSpacing()
is used..

Pls reply..





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



Other Threads

1. Unicode characters via resource element

I posted this in beginner to no avail.  Perhaps this is one for developers
...

I want to use unicode characters in a toast.  I can do this via code.

I am not having any luck associating this as a resource element.

Is this impossible or am I using the wrong syntax?

This is what I have tried to no avail:

<string name="title_no_title">No Title \u2639</string>

If you know the answer - pls correct!

Thank You,
Jason Van Anden

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

2. Log with Production App

I've been working on an app for a couple of months, it's loaded with
log statements (android.util.Log) now and they are very useful.

Question: Is it better to remove log statements before deploying to
the market or can they be left in? Are there good reasons to remove
them regardless?

Thanks in advance.

-John Coryat
--~--~---------~--~----~------------~-------~--~----~

3. How can i access the home screen to show gif anim there..?

4. APNG supported

5. Beginner Application Development

6. Technote android-2.6.31-001: How to regenerate bionic/libc/common/kernel headers for linux kernel v2.6.31

7. multiple image attachment