Code examples for StaticLayout

Codota analyzed 7,668,838 open source code samples to find the most common, credible and clear examples.
You can now enable Codota on your own code to easily search and navigate your Java codebase.
604:	itemsLayout.getLineBounds(visibleItems / 2, bounds); 
-
609:	canvas.translate(itemsLayout.getWidth() + LABEL_OFFSET, bounds.top); 
Full Snippet Info
7
CodeRank
338:	mCoordinates.subjectWidth, Alignment.ALIGN_NORMAL, 1, 0, false /* includePad */); 
339:	if (mCoordinates.subjectLineCount < mSubjectLayout.getLineCount()) { 
-
341:	int end = mSubjectLayout.getLineEnd(mCoordinates.subjectLineCount - 1); 
Full Snippet Info
6
CodeRank
107:	true, TextUtils.TruncateAt.MIDDLE, outerWidth); 
108:	mTitleY = top + (height - mTitleLayout.getHeight()) / 2; 
Full Snippet Info
6
CodeRank
313:	StaticLayout layout = new StaticLayout(source, paint, width, Alignment.ALIGN_NORMAL, spacingMult, spacingAdd, false); 
314:	layout.draw(textResizeCanvas); 
315:	return layout.getHeight(); 
Full Snippet Info
6
CodeRank
123:	Layout layout = new StaticLayout(getText(), mTextPaintOutline, measureWidth(widthMeasureSpec), Layout.Alignment.ALIGN_CENTER, mSpacingMult, mSpacingAdd, mIncludePad); 
-
125:	setMeasuredDimension(measureWidth(widthMeasureSpec) + ex, measureHeight(heightMeasureSpec) * layout.getLineCount() + ex); 
Full Snippet Info
6
CodeRank
168:	StaticLayout layout = new StaticLayout(source, paint, widthPx, Alignment.ALIGN_NORMAL, mSpacingMult, 
-
170:	layout.draw(TEXT_RESIZE_CANVAS); 
-
172:	return layout.getLineCount(); 
Full Snippet Info
6
CodeRank
131:	return new StaticLayout(workingText, getPaint(), getWidth() - getPaddingLeft() - getPaddingRight(), 
Full Snippet Info
6
CodeRank
306:	StaticLayout layout = new StaticLayout(source, paint, width, Alignment.ALIGN_NORMAL, mSpacingMult, mSpacingAdd, true); 
307:	return layout.getHeight(); 
Full Snippet Info
6
CodeRank
151:	_alignment, 1, 0, false); 
-
153:	textHeight = (int)Math.ceil(layout.getHeight()); 
Full Snippet Info
6
CodeRank
199:	StaticLayout layout = new StaticLayout(source, paint, width, 
-
201:	layout.draw(sTextResizeCanvas); 
202:	return layout.getHeight(); 
Full Snippet Info
6
CodeRank
265:	return new StaticLayout(text, mTextPaint, 
Full Snippet Info
6
CodeRank
200:	StaticLayout layout = new StaticLayout(source, paint, width, Alignment.ALIGN_NORMAL, mSpacingMult, mSpacingAdd, true); 
201:	layout.draw(sTextResizeCanvas); 
202:	return layout.getHeight(); 
Full Snippet Info
6
CodeRank
359:	mTextAlignment, 1.0f, 0.0f, false); 
360:	mTextBounds.set(0, 0, mTextLayout.getWidth(), mTextLayout.getHeight()); 
Full Snippet Info
6
CodeRank
119:	StaticLayout layout = new StaticLayout(percent + "%", tp, m_width * 2 / 3, 
-
122:	canvas.translate((m_width - layout.getWidth()) / 2, (m_height - layout.getHeight()) / 2); 
123:	layout.draw(canvas); 
Full Snippet Info
6
CodeRank
265:	return new StaticLayout(text, mTextPaint, 
Full Snippet Info
6
CodeRank
90:	StaticLayout layout  = new StaticLayout(message, txtP, this.getWidth() - rpad,Layout.Alignment.ALIGN_NORMAL, 1.3f, 0, false); 
-
93:	layout.getHeight() + 
-
98:	this.setLayoutParams(new LayoutParams(this.getWidth(), layout.getHeight() + 
-
126:	layout.draw(canvas); 
-
129:	canvas.drawBitmap(picture, layout.getWidth()/2 - picture.getWidth()/2, layout.getHeight(), msgP); 
Full Snippet Info
5
CodeRank
107:	true, TextUtils.TruncateAt.MIDDLE, outerWidth); 
108:	mTitleY = top + (height - mTitleLayout.getHeight()) / 2; 
Full Snippet Info
6
CodeRank