I have run into an interesting problem using the Gallery Object.  I am
doing some custom gesture detection in an onFling() method and get a
null view object when the index of the view I am trying to get is 6 or
above.

The following line of code works fine for positions 0 - 5 but
closeView is always null with positions 6+:

int pos = m_runningGallery.pointToPosition((int)e1.getX(), (int)e1.getY
());
View closeView = m_runningGallery.getChildAt(pos);

In doing some debugging, it looks like the gallery object ALWAYS
reports 6 children, regardless of the number of children actually in
the view.

Has anyone else encountered this problem and/or found a solution to
this?

Thanks in advance,
Justin



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Beginners" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-beginners?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to