Well it's pretty clear that event is not firing, my question is how to
get it to fire.
I'm adding/removing a TextView to a gallery and want that view get
selected in the gallery.

On Feb 11, 5:09 pm, Sundog <sunns...@gmail.com> wrote:
> setSelection doesn't generate any events, so your listener never hear
> anything.
> I think someone worked out a way to inject an event but I can't find
> it now.
>
> On Feb 11, 4:02 pm, Alexey <avolo...@gmail.com> wrote:
>
> > Hi i have a gallery created from code and it has
> > OnItemSelectedListener .
> > I set selected item from the code by mGallery.setSelection(idx);
> > and expect a callback into my  onItemSelected
> > But it't doesn't happen - how i can trigger onItemSelected to get hit
> > from code ?
>
> > thanks Alex
>
>
--~--~---------~--~----~------------~-------~--~----~
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