• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps in touchevents how do i shortin this up a bit

flyhigh427

Member
Jan 10, 2013
53
1
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]
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones