Best code examples for Android ViewGroup.LayoutParams class (android.view.ViewGroup.LayoutParams)

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

Android ViewGroup.LayoutParams examples from Open Source projects
This code example shows how to use the following methods:
67:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
75:	super.setContentView(v, params); 
76:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods:
67:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
76:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
67:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
76:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
68:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
76:	super.setContentView(v, params); 
77:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
67:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
76:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
71:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
80:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods:
75:	LayoutParams.FILL_PARENT)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
8:	LayoutParams retval = new LayoutParams(LayoutParams.WRAP_CONTENT, LayoutParams.WRAP_CONTENT); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
67:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: setContentView
239:	LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); 
240:	getWindow().setContentView(layout, params); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
91:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
99:	super.setContentView(v, params); 
100:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
67:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
119:	LayoutParams.WRAP_CONTENT)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addView
152:	((ViewGroup) target).addView(container, 
153:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
45:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
49:	super.setContentView(v, params); 
50:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
67:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
76:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
79:	new ViewGroup.LayoutParams( 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addView
152:	((ViewGroup) target).addView(container, 
153:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
136:	LayoutParams.WRAP_CONTENT)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
71:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
80:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
71:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
-
79:	super.setContentView(v, params); 
80:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
100:	LayoutParams.MATCH_PARENT)); 
-
111:	super.setContentView(v, params); 
112:	mHelper.registerAboveContentView(v, params); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
79:	addContentView(mContent, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
67:	setContentView(v, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
45:	LayoutParams lp = new LayoutParams(LayoutParams.MATCH_PARENT, 
-
47:	mPie.setLayoutParams(lp); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
128:	glview.setLayoutParams(new LayoutParams(LayoutParams.FILL_PARENT, 
129:	LayoutParams.FILL_PARENT)); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setBackgroundColor, setLayoutParams, setVisibility, addView, addContentView
134:	mCustomViewContainer = new FrameLayout(activity); 
135:	mCustomViewContainer.setBackgroundColor(Color.BLACK); 
136:	mCustomViewContainer.setLayoutParams(params); 
137:	activity.getWindow().addContentView(mCustomViewContainer, params); 
-
139:	mCustomViewContainer.addView(view); 
-
142:	mCustomViewContainer.setVisibility(View.VISIBLE); 
Full Snippet Info
9
CodeRank
This code example shows how to use the following methods: setBackgroundColor, addContentView, addView
17:	ScrollView scrollView = new ScrollView(this); 
-
24:	scrollView.setBackgroundColor(Color.parseColor("#228b22")); 
25:	scrollView.addView(content); 
26:	getWindow().addContentView(scrollView, getWindow().getAttributes()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDecorView, requestFeature, setBackgroundDrawableResource, setContentView, setVolumeControlStream
133:	mWindow.setWindowManager(mWindowManager, null, null); 
134:	mWindow.requestFeature(Window.FEATURE_NO_TITLE); 
135:	mDecor = mWindow.getDecorView(); 
-
137:	mWindow.setContentView(this); 
138:	mWindow.setBackgroundDrawableResource(android.R.color.transparent); 
-
142:	mWindow.setVolumeControlStream(AudioManager.STREAM_MUSIC); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDecorView, requestFeature, setBackgroundDrawableResource, setContentView, setVolumeControlStream
153:	mWindow.setWindowManager(mWindowManager, null, null); 
154:	mWindow.requestFeature(Window.FEATURE_NO_TITLE); 
155:	mDecor = mWindow.getDecorView(); 
-
157:	mWindow.setContentView(this); 
158:	mWindow.setBackgroundDrawableResource(android.R.color.transparent); 
-
162:	mWindow.setVolumeControlStream(AudioManager.STREAM_MUSIC); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: setContentView
60:	LayoutParams params = new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT); 
61:	getWindow().setContentView((View) gameView, params); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addContentView
60:	((Activity)sContext).addContentView(sLayout, new ViewGroup.LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
152:	((ViewGroup) target).addView(container, 
153:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: addView
153:	((ViewGroup) target).addView(container, 
154:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
153:	((ViewGroup) target).addView(container, 
154:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
152:	((ViewGroup) target).addView(container, 
153:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
152:	((ViewGroup) target).addView(container, 
153:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
152:	((ViewGroup) target).addView(container, 
153:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
152:	((ViewGroup) target).addView(container, 
153:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
152:	((ViewGroup) target).addView(container, 
153:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
151:	((ViewGroup) target).addView(container, 
152:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
146:	((ViewGroup) target).addView(container, 
147:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
125:	((ViewGroup) target).addView(container, new LayoutParams( 
126:	LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
153:	((ViewGroup) target).addView(container, 
154:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods: addView
150:	((ViewGroup) target).addView(container, 
151:	new LayoutParams(LayoutParams.FILL_PARENT, LayoutParams.FILL_PARENT)); 
Full Snippet Info
4
CodeRank
Related Android ViewGroup.LayoutParams Questions & Answers:
Other Android ViewGroup.LayoutParams Examples
5:	    ViewAsserts.assertOnScreen(decorView, mClickMeButton);
6:	
7:	    final ViewGroup.LayoutParams layoutParams =
8:	            mClickMeButton.getLayoutParams();
9:	    assertNotNull(layoutParams);

Read More

See Code Examples for Android ViewGroup.LayoutParams Methods: