Code example for Region

Methods: getBoundsset

	public final void setSize(int width, int height)
		mSize.x = width;
		mSize.y = height;
		Rect bounds = mRegion.getBounds();
		mRegion.set(bounds.left,, bounds.left + width,
				+ height);
	public final Point getSize()
		return mSize;
	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