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;
import java.lang.reflect.Method;
import java.util.ArrayList;
import java.util.HashMap;
* Modified from {@link <a href=""/>}
* @author nekocode (
public class DiffUtils {
You can’t perform that action at this time.