Skip to content

Instantly share code, notes, and snippets.

Working from home

nekocode nekocode

Working from home
Block or report user

Report or block nekocode

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
* 裁剪文本
private static String cutText(float textSize, String title, float maxWidth) {
final TextPaint textPaint = new TextPaint();
if (textPaint.measureText(title) < maxWidth)
return title;
You can’t perform that action at this time.