Best code examples for Android WindowManager class (android.view.WindowManager)

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

Android WindowManager examples from Open Source projects
This code example shows how to use the following methods: setBackgroundDrawable, addView, addView
147:	containerView = new LinearLayout(context); 
148:	containerView.addView(contentView); 
149:	containerView.setBackgroundDrawable(background); 
150:	getWindowManager().addView(containerView, null); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
71:	windowManager.getDefaultDisplay(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addView
48:	mgr.addView(v, params); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addView, removeView
156:	mWM.removeView(mView); 
-
158:	mWM.addView(mView, mParams); 
-
168:	mWM.removeView(mView); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
102:	mScreenWidth = windowManager.getDefaultDisplay().getWidth(); 
103:	mScreenHeight = windowManager.getDefaultDisplay().getHeight(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
316:	Display display = windowManager.getDefaultDisplay(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addView
48:	mgr.addView(v, params); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: updateViewLayout
333:	mWindowManager.updateViewLayout(mDragView, mWindowParams); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
43:	windowManager.getDefaultDisplay().getMetrics(metrics); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: addView, removeView
54:	windowMgr.addView(view, wmParams); 
-
58:	windowMgr.removeView(view); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
18:	final Display display = wm.getDefaultDisplay(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
103:	mScreenWidth = windowManager.getDefaultDisplay().getWidth(); 
104:	mScreenHeight = windowManager.getDefaultDisplay().getHeight(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addView, removeView
162:	mWM.removeView(mView); 
-
164:	mWM.addView(mView, mParams); 
-
174:	mWM.removeView(mView); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: setImageDrawable, setVisibility, removeView
290:	dragView.setVisibility(GONE); 
-
292:	windowManager.removeView(dragView); 
293:	dragView.setImageDrawable(null); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateViewLayout
96:	mWindowManager.updateViewLayout(mDragView, layoutParams); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
19:	final Display display = wm.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: addView
86:	mWindowManager.addView(mDialogText, lp); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
140:	int screenW = mWManager.getDefaultDisplay().getWidth(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
121:	Display d = wm.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: removeView
107:	mWindowManager.removeView(mDialogText); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateViewLayout
416:	mWindowManager.updateViewLayout(mDragView, mWindowParams); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
105:	wm.getDefaultDisplay().getWidth(), 
106:	wm.getDefaultDisplay().getHeight()); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
77:	mDisplay = wManager.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: updateViewLayout
495:	mWindowManager.updateViewLayout(mDragView, mWindowParams); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
37:	Display d = w.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
20:	manager.getDefaultDisplay().getMetrics(metrics); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
25:	Display display = wm.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
57:	Display display = windowManager.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
116:	return mWinManager.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
35:	windowManager.getDefaultDisplay().getMetrics(metrics); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
77:	Display display = wm.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
19:	wm.getDefaultDisplay().getMetrics(dm); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
487:	Display display = wm.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
20:	wm.getDefaultDisplay().getMetrics(dm); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
29:	android.view.Display display = manager.getDefaultDisplay(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
128:	wm.getDefaultDisplay().getMetrics(dm); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
102:	return mWinManager.getDefaultDisplay(); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
33:	wm.getDefaultDisplay().getMetrics(dm); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
34:	wm.getDefaultDisplay().getMetrics(dm); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
36:	wm.getDefaultDisplay().getMetrics(dm); 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods: getDefaultDisplay
37:	wm.getDefaultDisplay().getMetrics(dm); 
Full Snippet Info
5
CodeRank
Related Android WindowManager Questions & Answers:
See Code Examples for Android WindowManager Methods: