package ga.deluded_fruitcakes_anonymous.velocityangles;

import android.content.Context;
import android.view.MotionEvent;
import android.view.View;
import android.widget.Toast;

/**
 * Created by Isaac on 8/3/2016.
 */
public class GameView extends View {
     float centerX, centerY
  float borderHeight;
  
   
  
    public GameView(Context context,float sHeight, float sWidth) {
        super(context); 
        borderHeight = sHeight * 0.7;
    centerX = sWidth * 0.5;
    centerY = sHeight * 0.9;
    }
     @Override
    public boolean onTouchEvent(MotionEvent e) {
        // MotionEvent reports input details from the touch screen
        // and other input controls. In this case, you are only
        // interested in events where the touch position changed.

        float x = e.getX();
        float y = e.getY();
    if(y >= borderHeight){
        switch (e.getAction()) {
            case MotionEvent.ACTION_DOWN:
                Toast.makeText(getContext(), "Screen Touched at " + (x-centerX) + ", " + (y-centerY), Toast.LENGTH_SHORT).show();

        }}
}

@@ -249,25 +249,24 @@
  View %7B%0A    
- 
 float center
@@ -275,17 +275,20 @@
  centerY
-%0A
+;%0A  
   float 
@@ -305,17 +305,9 @@
 ht;%0A
-  %0A   %0A  
+%0A
 %0A   
@@ -339,16 +339,17 @@
 context,
+ 
 float sH
@@ -394,17 +394,16 @@
 ontext);
- 
 %0A       
@@ -431,18 +431,23 @@
 ht * 0.7
+f
 ;%0A
+    
     cent
@@ -464,22 +464,27 @@
 th * 0.5
+f
 ;%0A    
+ 
+   
 centerY 
@@ -502,16 +502,17 @@
  0.9
+f
 ;%0A    %7D%0A
     
@@ -507,17 +507,17 @@
 ;%0A    %7D%0A
- 
+%0A
     @Ove
@@ -829,14 +829,19 @@
 ();%0A
+    
     if
+ 
 (y %3E
@@ -855,16 +855,17 @@
 rHeight)
+ 
 %7B%0A      
@@ -866,16 +866,20 @@
         
+  
+  
 switch (
@@ -891,24 +891,28 @@
 Action()) %7B%0A
+    
             
@@ -957,16 +957,20 @@
         
+  
+  
 Toast.ma
@@ -1015,17 +1015,19 @@
 t %22 + (x
--
+ - 
 centerX)
@@ -1038,17 +1038,19 @@
 , %22 + (y
--
+ - 
 centerY)
@@ -1088,13 +1088,53 @@
         
+  
-%7D
+  %7D%0A        %7D%0A        return true;%0A    
 %7D%0A%7D%0A

Update GameView.java