I was trying to make clear WHY it didn't fire. Hopefully the person who solved it before will see this.
On Feb 11, 6:43 pm, Alexey <[email protected]> wrote: > 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 <[email protected]> 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 <[email protected]> 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 [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-developers?hl=en -~----------~----~----~----~------~----~------~--~---

