It's being called once for ACTION_DOWN and a second time for ACTION_UP. Just check for getAction() and only respond to one of them.
j On Mon, Jun 1, 2009 at 10:37 PM, Nazgul <[email protected]> wrote: > > the setOnTouchListener of my widget is being called twice. > am checking it on emulator 1.5 avd. > I commented out the onclicklistener code, and also tried to > setClickable to false and setFocusable to true...but no help > > I cant use onclick listener since i have a custom background color an > image so there i no way for user to see where the navigation buttons > are carrying him. > > can some one tel me what am i doing wrong here. > > > -- Jeff Sharkey [email protected] --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

