Best code examples for Android RelativeLayout.LayoutParams class (android.widget.RelativeLayout.LayoutParams)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android RelativeLayout.LayoutParams class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android RelativeLayout.LayoutParams examples from Open Source projects
This code example shows how to use the following methods: addRule
119:	updatedOriginalParams.addRule(RelativeLayout.ABOVE, socializeActionBar.getId()); 
-
137:	return new RelativeLayout.LayoutParams(source); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addRule
97:	LayoutParams params = new LayoutParams(LayoutParams.WRAP_CONTENT, 
-
100:	params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); 
101:	params.addRule(RelativeLayout.CENTER_VERTICAL); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addRule
59:	RelativeLayout.LayoutParams item_text_param = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.WRAP_CONTENT); 
60:	item_text_param.addRule(RelativeLayout.RIGHT_OF, image.getId()); 
61:	item_text_param.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); 
62:	item_text_param.addRule(RelativeLayout.BELOW, title.getId()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addRule
78:	RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams( 
-
86:	params.addRule(RelativeLayout.CENTER_IN_PARENT); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
126:	LayoutParams prevParams = new LayoutParams( 
-
133:	prevParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT); 
-
135:	prevParams.addRule(RelativeLayout.CENTER_VERTICAL); 
-
141:	prevImage.setLayoutParams(prevParams); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
125:	LayoutParams prevParams = new LayoutParams( 
-
128:	prevParams.addRule(RelativeLayout.ALIGN_PARENT_LEFT); 
129:	prevParams.addRule(RelativeLayout.CENTER_VERTICAL); 
-
131:	prevImage.setLayoutParams(prevParams); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setLayoutParams
153:	localImageView.setLayoutParams(new RelativeLayout.LayoutParams(-2, -2)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
48:	RelativeLayout.LayoutParams result = new RelativeLayout.LayoutParams( RelativeLayout.LayoutParams.FILL_PARENT, RelativeLayout.LayoutParams.FILL_PARENT ); 
49:	result.addRule( RelativeLayout.ALIGN_PARENT_LEFT, RelativeLayout.TRUE ); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
187:	RelativeLayout.LayoutParams localLayoutParams = new RelativeLayout.LayoutParams(-2, -2); 
188:	localLayoutParams.addRule(15); 
189:	localLayoutParams.addRule(7, 56266); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
34:	rl.addView(map_, new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView, addRule
303:	RelativeLayout.LayoutParams rl = new RelativeLayout.LayoutParams( 
-
305:	rl.addRule(RelativeLayout.ALIGN_PARENT_BOTTOM); 
306:	rl.addRule(RelativeLayout.BELOW); 
-
310:	((ViewGroup) contentView).addView(getBottomView(), rl); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setMargins
81:	RelativeLayout.LayoutParams lp = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 
-
84:	lp.setMargins(x, y, 0, 0); 
85:	control.setLayoutParame(lp); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setMargins
81:	RelativeLayout.LayoutParams lp = new LayoutParams(ViewGroup.LayoutParams.WRAP_CONTENT, 
-
84:	lp.setMargins(x, y, 0, 0); 
85:	control.setLayoutParame(lp); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
99:	RelativeLayout.LayoutParams dayParams = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 
100:	dayParams.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); 
101:	dayParams.addRule(RelativeLayout.ALIGN_PARENT_TOP); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
62:	LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT,LayoutParams.WRAP_CONTENT); 
63:	lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT,RelativeLayout.TRUE); 
64:	lp.addRule(RelativeLayout.CENTER_VERTICAL,RelativeLayout.TRUE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
172:	RelativeLayout.LayoutParams registerButtonLayout = new RelativeLayout.LayoutParams(getButtonWidth(), buttonHeight); 
-
175:	registerButtonLayout.addRule(RelativeLayout.BELOW, passwordEditText2.getId()); 
176:	registerButtonLayout.addRule(RelativeLayout.ALIGN_PARENT_LEFT); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
168:	RelativeLayout.LayoutParams descTextLayout = new RelativeLayout.LayoutParams(LayoutParams.FILL_PARENT, 55); 
169:	descTextLayout.addRule(RelativeLayout.BELOW, titleText.getId()); 
170:	descTextLayout.addRule(RelativeLayout.RIGHT_OF, imageView.getId()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
86:	LayoutParams params =new RelativeLayout.LayoutParams( 
-
89:	params.addRule(RelativeLayout.BELOW,TITLE_ID); 
90:	params.addRule(RelativeLayout.CENTER_HORIZONTAL); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
90:	LayoutParams wrap_content = new LayoutParams(LayoutParams.WRAP_CONTENT, 
-
93:	wrap_content.addRule(RelativeLayout.CENTER_HORIZONTAL, 1); 
94:	wrap_content.addRule(RelativeLayout.CENTER_VERTICAL, 1); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setMargins
32:	lp.setMargins( (int)(mStart + change), 0, -(int)(mStart + change), 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
296:	LayoutParams params =new RelativeLayout.LayoutParams( 
-
299:	params.addRule(RelativeLayout.CENTER_VERTICAL); 
300:	params.addRule(RelativeLayout.LEFT_OF,BODY_ID); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setMargins
69:	LayoutParams lp = new LayoutParams( 
-
72:	lp.setMargins(3, 12, 0, 0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
19:	RelativeLayout.LayoutParams params = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 
20:	params.addRule(RelativeLayout.ALIGN_PARENT_LEFT,(pageIdx == 1)?RelativeLayout.TRUE:0); 
21:	params.addRule(RelativeLayout.ALIGN_PARENT_RIGHT,(pageIdx == 1)?0:RelativeLayout.TRUE); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
67:	d.setContentView(obj(), new LayoutParams(px(width), px(height))); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
211:	RelativeLayout.LayoutParams lp = new RelativeLayout.LayoutParams(100, LayoutParams.MATCH_PARENT); 
212:	lp.addRule(RelativeLayout.ALIGN_PARENT_RIGHT); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: RelativeLayout$LayoutParams.addRule
45:	params.addRule(rule); 
-
53:	params.addRule(rule, anchor); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setMargins
26:	RelativeLayout.LayoutParams a = new RelativeLayout.LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 
27:	a.setMargins(l,t,0,0); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
85:	LayoutParams imgParams = new LayoutParams(LayoutParams.WRAP_CONTENT,LayoutParams.WRAP_CONTENT); 
86:	imgParams.addRule(RelativeLayout.CENTER_IN_PARENT); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
235:	params = new RelativeLayout.LayoutParams( 
-
238:	params.addRule(RelativeLayout.CENTER_HORIZONTAL); 
239:	params.addRule(RelativeLayout.BELOW,TITLE_ID); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addRule
53:	LayoutParams lp = new LayoutParams(40, 40); 
54:	lp.addRule(RelativeLayout.CENTER_IN_PARENT); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
79:	LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); 
80:	mImageView.setLayoutParams(lp); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setMargins
390:	params.setMargins(params.leftMargin, 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addRule
53:	params.addRule(RelativeLayout.CENTER_IN_PARENT); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setMargins
93:	params.setMargins(left, top, right, bottom); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setMargins
38:	mLayoutParams.setMargins(mLayoutParams.leftMargin, 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setMargins
29:	lp.setMargins(0,-(int) (mStart + change),0, (int) (mStart + change)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: setMargins
275:	params.setMargins(0, params.topMargin, 0, 
Full Snippet Info
4
CodeRank
Related Android RelativeLayout.LayoutParams Questions & Answers:
See Code Examples for Android RelativeLayout.LayoutParams Methods: