Code example for Layout

Methods: getLineCountgetLineTop

0
    private int getDesiredHeight() { 
	if (mLayout == null) {
	    return 0; 
	} 
 
	int linecount = mLayout.getLineCount();
	int desired = mLayout.getLineTop(linecount);
 
	desired = Math.max(mLabelHeight, desired);
 
	return desired;
    } 
 
    public void setText(CharSequence text) {
	mText = text == null ? "" : text;
	mTextCut = "";
	if (mLayout != null) {
	    checkForRelayout(); 
	} 
    } 
Contextual code suggestions in your IDE  Get Codota for Java