Code examples for ViewGroup.MarginLayoutParams

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.
52:	layoutParams.setMarginEnd(end); 
Full Snippet Info
5
CodeRank
132:	MarginLayoutParams layoutParams = new MarginLayoutParams( 0, 0 ); 
133:	when( progressBar.getLayoutParams() ).thenReturn( layoutParams ); 
Full Snippet Info
4
CodeRank
52:	MarginLayoutParams blp = new MarginLayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); 
53:	blp.setMargins(15, 0, 15, 0); 
Full Snippet Info
4
CodeRank
43:	MarginLayoutParams params = new MarginLayoutParams(MarginLayoutParams.MATCH_PARENT, MarginLayoutParams.MATCH_PARENT); 
44:	params.setMargins(10, 0, 10, 0); 
Full Snippet Info
5
CodeRank
25:	MarginLayoutParams marginParams = new MarginLayoutParams(mView.getLayoutParams()); 
26:	marginParams.setMargins(0, 0, 0, 0); 
Full Snippet Info
5
CodeRank
17:	MarginLayoutParams mlp = new MarginLayoutParams(LayoutParams.FILL_PARENT,LayoutParams.FILL_PARENT); 
18:	mlp.setMargins(50, 20, 25, 20); 
Full Snippet Info
4
CodeRank
49:	marginLayoutParams.setMargins(x, y, 0, 0); 
Full Snippet Info
4
CodeRank
60:	marginLayoutParams.setMargins(x, y, 0, 0); 
Full Snippet Info
5
CodeRank
22:	MarginLayoutParams mlp = new MarginLayoutParams(MarginLayoutParams.WRAP_CONTENT, MarginLayoutParams.WRAP_CONTENT); 
23:	mlp.setMargins(left, top, right, bottom); 
Full Snippet Info
5
CodeRank
49:	marginLayoutParams.setMargins(x, y, 0, 0); 
Full Snippet Info
4
CodeRank
60:	marginLayoutParams.setMargins(x, y, 0, 0); 
Full Snippet Info
4
CodeRank
49:	marginLayoutParams.setMargins(x, y, 0, 0); 
Full Snippet Info
4
CodeRank
49:	marginLayoutParams.setMargins(x, y, 0, 0); 
Full Snippet Info
4
CodeRank
49:	marginLayoutParams.setMargins(x, y, 0, 0); 
Full Snippet Info
4
CodeRank
49:	marginLayoutParams.setMargins(x, y, 0, 0); 
Full Snippet Info
4
CodeRank
144:	mlp.setMargins(-offset, mlp.topMargin, 
Full Snippet Info
4
CodeRank
68:	(new ViewGroup.MarginLayoutParams 
Full Snippet Info
4
CodeRank