Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion captcha/src/main/java/com/luozm/captcha/TextSeekbar.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,6 @@ protected void onDraw(Canvas canvas) {
float top = fontMetrics.top;//为基线到字体上边框的距离,即上图中的top
float bottom = fontMetrics.bottom;//为基线到字体下边框的距离,即上图中的bottom
int baseLineY = (int) (getHeight() / 2 - top / 2 - bottom / 2);//基线中间点的y轴计算公式
canvas.drawText("向右滑动滑块完成拼图", getWidth() / 2, baseLineY, textPaint);
canvas.drawText("aaaaa", getWidth() / 2, baseLineY, textPaint);
}
}