Code example for Rect

Methods: isEmptysetsetEmpty

0
				hlRect.set(v.getLeft(), v.getTop(),
						v.getRight(), v.getBottom());
				return; 
			} 
		} 
		hlRect.setEmpty();
	} 
	 
	@Override 
	protected void dispatchDraw(Canvas canvas) {
		Drawable d = hlDrawable;
		if (hlPosition != -1 && d != null) {
			updateHighlightRect(); 
			if (!hlRect.isEmpty()) {
				canvas.save();
				canvas.clipRect(hlRect);
				d.draw(canvas);
				canvas.restore();
			} 
		} 
		super.dispatchDraw(canvas);