@Override
public void onDraw(Canvas c) {
super.onDraw(c);
if (mDebugEnabled) {
if (mDebugPaint == null) {
mDebugPaint = new Paint();
mDebugPaint.setColor(Color.BLACK);
mDebugPaint.setAntiAlias(true);
mDebugPaint.setStyle(Paint.Style.FILL);
mTopBoundRect = new RectF(0, mHotspotTopBoundStart, getMeasuredWidth(), mHotspotTopBoundEnd);
mBottomBoundRect = new RectF(0, mHotspotBottomBoundStart, getMeasuredWidth(), mHotspotBottomBoundEnd);
}
c.drawRect(mTopBoundRect, mDebugPaint);
c.drawRect(mBottomBoundRect, mDebugPaint);
}
}