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 -> other button touch are just ignored.given the
following code(removed the flag part fr simplicity of code fr now) .

public boolean onTouch(View v, MotionEvent arg1) {

                if(arg1.getAction() ==MotionEvent.ACTION_MOVE)
        {
                Button b;

                switch (v.getId())
        {
        case R.id.b1:
        case R.id.b2:
        case R.id.b3:
        case R.id.b4:
        case R.id.b5:
        case R.id.b6:
        case R.id.b7:

              b = (Button)findViewById(v.getId());
              b.performClick();

                break;
        }
     return true;

        }

am i missing somethng ? wht i want is whn buttons are touched ..they
perform onclick functionality.once one button click is registered rest
are ignored :(
https://market.android.com/details?id=com.ant.wordfind.client&feature=search_result
i want selection something like this .

thx


On Sep 15, 6:03 pm, TreKing <[email protected]> wrote:
> On Thu, Sep 15, 2011 at 7:58 AM, nivedita arora <[email protected]
>
> > 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 the flag when you get a release event (or whatever it
> is).
>
> --------------------------------------------------------------------------- 
> ----------------------
> TreKing <http://sites.google.com/site/rezmobileapps/treking> - Chicago
> transit tracking app for Android-powered devices

-- 
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

Reply via email to