Code example for RectF

Methods: isEmpty

0
		 
		if (path == null) {
			return; 
		} 
		 
		final RectF rectF = new RectF();
		path.computeBounds(rectF, true);
 
		mRegion.setEmpty();
		mRegion.setPath(path, new Region((int) rectF.left, (int) rectF.top, (int) rectF.right, (int) rectF.bottom));
		 
		if (rectF.isEmpty()) {
			//TODO record error to server 
			GLogger.e(TAG, "get an empty rect from path , rect infomation : " + rectF);
			return; 
		} 
		 
//		if (!rectF.equals(mBoundsRect)) { 
			//重新布局 
			layout(rectF);
//		} else {