[android-developers] Re: drag/slide finger to perform onclick buttons

2011-09-16 Thread niko20
You will have to either draw the UI yourself, or put an "invisible" view over the top of the buttons, and handle the touch events there, and then send the appropriate events to the underlying buttons. That way you can track where the finger is at all times while it's moving. -niko On Sep 15, 11:3

[android-developers] Re: drag/slide finger to perform onclick buttons

2011-09-15 Thread nivedita arora
can someone pls provide code snippet ? or bttr insight to the problem i am facing :| thx in advance On Sep 15, 6:32 pm, nivedita arora wrote: > really Sorry i mixed two problems in explaining :| > yes, i hv tried flag of change of view, the ontouch converts ->onclick > type functionality . > > Bu

Re: [android-developers] Re: drag/slide finger to perform onclick buttons

2011-09-15 Thread TreKing
On Thu, Sep 15, 2011 at 7:58 AM, nivedita arora wrote: > yes i gt continuous button down rather thn one click. any idea how boggle > type games have button click functionality using finger drag ? > Set some flag on the first touch, ignore all other touch events when the flag is set, and clear th

Re: [android-developers] Re: drag/slide finger to perform onclick buttons

2011-09-15 Thread TreKing
On Thu, Sep 15, 2011 at 8:32 AM, nivedita arora wrote: > But the other problem still exists.problem is when i drag of finger > only one button gets registered , even if i press other buttons by > dragging cursor -> other button touch are just ignored. > I don't know - perhaps instead of registe

[android-developers] Re: drag/slide finger to perform onclick buttons

2011-09-15 Thread nivedita arora
really Sorry i mixed two problems in explaining :| yes, i hv tried flag of change of view, the ontouch converts ->onclick type functionality . But the other problem still exists.problem is when i drag of finger only one button gets registered , even if i press other buttons by dragging cursor ->

[android-developers] Re: drag/slide finger to perform onclick buttons

2011-09-15 Thread nivedita arora
yes i gt continuous button down rather thn one click. any idea how boggle type games have button click functionality using finger drag ? thx fr ur help :) On Sep 15, 5:41 pm, TreKing wrote: > On Thu, Sep 15, 2011 at 6:29 AM, nivedita arora > > wrote: > > Problem is i dont want continuous clic