1. Check out our companion app, Forums for Android! Download from Google Play

in touchevents how do i shortin this up a bit

Discussion in 'Application Development' started by flyhigh427, Jan 27, 2013.

  1. flyhigh427

    flyhigh427 Well-Known Member
    Thread Starter
    16

    Jan 10, 2013
    53
    1
    16
    hey i need to make this 21 times in my touchevent.
    my question is how/or whats the best way to replace the 0,32,416,480,
    with 21 sets of numbers?
    thanks

    [HIGH]
    if​
    (event.x >= 0 && event.x <= 32 &&
    event.
    y >= 416 && event.y <= 480) {
    if (markercancel==true){
    setmarker=false;
    markercancel=false;
    }
    else{
    markercancel=true;
    markerset=1;
    setmarker=true;
    }

    }
    [/HIGH]
     

    Advertisement

Share This Page

Loading...