Code example for Region

Methods: getBoundsset

0
	public final void setSize(int width, int height)
	{ 
		mSize.x = width;
		mSize.y = height;
 
		Rect bounds = mRegion.getBounds();
		mRegion.set(bounds.left, bounds.top, bounds.left + width, bounds.top
				+ height);
	} 
 
	public final Point getSize()
	{ 
		return mSize;
	} 
 
	@Override 
	public boolean onTouchEvent(MotionEvent event)
	{ 
		// Is the event inside of this view? 
		if (!mRegion.contains((int) event.getX(), (int) event.getY()))
Connect your IDE to all the code out there  Get Codota for Java