Skip to content

Commit

Permalink
MoonCustomView修改
Browse files Browse the repository at this point in the history
修改onDraw方法的padding处理逻辑
  • Loading branch information
henrymorgen committed Aug 26, 2017
1 parent c10b6cd commit 11e16e4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -61,6 +61,6 @@ protected void onDraw(Canvas canvas) {
int paddingBottom = getPaddingBottom();
int width = getWidth() - paddingLeft - paddingRight;
int height = getHeight() - paddingTop - paddingBottom;
canvas.drawRect(0 + paddingLeft, 0 + paddingTop, width + paddingRight, height + paddingBottom, mPaint);
canvas.drawRect(0 + paddingLeft, 0 + paddingTop, width + paddingLeft, height + paddingTop, mPaint);
}
}

0 comments on commit 11e16e4

Please sign in to comment.