Code example for Paint.FontMetricsInt

    private static final int STATE_CHANGED = 0x00000001;
    private static final int STATE_COLLAPSED = 0x00000002;
    private static final int STATE_EXPANDED = 0x00000004;
    private FontMetricsInt mLabelFontMetrics = new FontMetricsInt();
    private TextPaint mTextPaint;
    private TextPaint mTextLabelPaint;
    private Layout mLayout;
    private CharSequence mText;
    private CharSequence mTextCut;
    private CharSequence mTextLabel;
    private int mStateFlags;
    private int mMaxLines;
    private int mEllipsizedWidth;
    private int mLabelWidth;
Connect your IDE to all the code out there  Get Codota for Java