Go Back   Android Forums > Android Development > Application Development
Application Development Dev lounge for our application developers.

test: Reply
 
LinkBack Thread Tools
Old January 27th, 2013, 11:51 AM   #1 (permalink)
Junior Member
Thread Author (OP)
 
Join Date: Jan 2013
Posts: 53
 
Device(s):
Carrier: Not Provided

Thanks: 11
Thanked 1 Time in 1 Post
Default in touchevents how do i shortin this up a bit

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]

Advertisements
flyhigh427 is offline  
Reply With Quote
sponsored links
Reply


Go Back   Android Forums > Android Development > Application Development
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 08:53 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.