Code example for Point

Methods: set

0
 
            // Double the height and width 
            int height = getView().getHeight() * 2;
            int width = getView().getWidth() * 2;            
            mBitmapDrawable.setBounds(0, 0, width, height);
            shadowSize.set(width, height);
             
            // Set the touch point to the middle 
            shadowTouchPoint.set(width / 2, height / 2);
        } 
 
    } 
     
     
    /** Called when the activity is first created. */ 
    @Override 
    public void onCreate(Bundle savedInstanceState) {
 
        Log.d(TAG, "onCreate()");
 
        super.onCreate(savedInstanceState);