Code examples for Layout

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.
45:	int line = layout.getLineForVertical(y); 
46:	int off = layout.getOffsetForHorizontal(line, x); 
Full Snippet Info
7
CodeRank
420:	canvas.translate((thumbLeft + thumbRight) / 2 - switchText.getEllipsizedWidth() / 2, 
421:	(switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2); 
422:	switchText.draw(canvas); 
Full Snippet Info
7
CodeRank
353:	int linecount = layout.getLineCount(); 
354:	int desired = layout.getLineTop(linecount) - getItemOffset() * 2 
Full Snippet Info
7
CodeRank
256:	final int minWidth = Math.max(mOnLayout.getWidth(), mOffLayout.getWidth()) 
-
258:	final int minHeight = Math.max(mOnLayout.getHeight(), mOffLayout.getHeight()) 
Full Snippet Info
7
CodeRank
583:	canvas.translate((thumbLeft + thumbRight) / 2 - switchText.getWidth() / 2, (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2); 
584:	switchText.draw(canvas); 
Full Snippet Info
7
CodeRank
91:	int line = layout.getLineForVertical(y); 
92:	int off = layout.getOffsetForHorizontal(line, x); 
Full Snippet Info
7
CodeRank
246:	layout.draw( canvas ); 
-
261:	RectF rect = new RectF( -margin, -margin, layout.getWidth() + margin * 2, layout.getHeight() + margin * 2 ); 
Full Snippet Info
7
CodeRank
256:	final int minWidth = Math.max(mOnLayout.getWidth(), mOffLayout.getWidth()) 
-
258:	final int minHeight = Math.max(mOnLayout.getHeight(), mOffLayout.getHeight()) 
Full Snippet Info
7
CodeRank
209:	int line = layout.getLineForVertical(y); 
210:	int off = layout.getOffsetForHorizontal(line, x); 
Full Snippet Info
7
CodeRank
44:	int line = layout.getLineForVertical(y); 
45:	int off = layout.getOffsetForHorizontal(line, x); 
Full Snippet Info
7
CodeRank
785:	canvas.translate((thumbLeft + thumbRight) / 2 - switchText.getWidth() / 2, (switchInnerTop + switchInnerBottom) / 2 - switchText.getHeight() / 2); 
786:	switchText.draw(canvas); 
Full Snippet Info
6
CodeRank
127:	int textX = point.x > screenWidth / 2 ? point.x - marginX - textLayout.getWidth() : point.x + marginX; 
128:	int textY = point.y > screenHeight / 2 ? point.y - marginY - textLayout.getHeight() : point.y + marginY; 
Full Snippet Info
6
CodeRank
251:	int line = layout.getLineForVertical(y); 
252:	int off = layout.getOffsetForHorizontal(line, x); 
Full Snippet Info
6
CodeRank
103:	if (layout.getLineCount() > maxLines) { 
104:	workingText = workingText.subSequence(0, layout.getLineEnd(maxLines - 1)); 
Full Snippet Info
6
CodeRank
45:	int line = layout.getLineForVertical(y); 
46:	int off = layout.getOffsetForHorizontal(line, x); 
Full Snippet Info
6
CodeRank
33:	super(layout.getWidth(), layout.getHeight()); 
Full Snippet Info
6
CodeRank
47:	int line = layout.getLineForVertical(y); 
48:	int off = layout.getOffsetForHorizontal(line, x); 
Full Snippet Info
6
CodeRank
54:	int line = layout.getLineForVertical(y); 
55:	int off = layout.getOffsetForHorizontal(line, x); 
Full Snippet Info
6
CodeRank