|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.view.WindowManagerImpl
public class WindowManagerImpl
Low-level communication with the global system window manager. It implements the ViewManager interface, allowing you to add any View subclass as a top-level window on the screen. Additional window manager specific layout parameters are defined for control over how windows are displayed. It also implemens the WindowManager interface, allowing you to control the displays attached to the device.
Applications will not normally use WindowManager directly, instead relying
on the higher-level facilities in Activity and
Dialog.
Even for low-level window manager access, it is almost never correct to use
this class. For example, Activity.getWindowManager()
provides a ViewManager for adding windows that are associated with that
activity -- the window manager will not normally allow you to add arbitrary
windows that are not associated with an activity.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface android.view.WindowManager |
|---|
WindowManager.BadTokenException, WindowManager.LayoutParams |
| Field Summary | |
|---|---|
static int |
ADD_APP_EXITING
|
static int |
ADD_BAD_APP_TOKEN
|
static int |
ADD_BAD_SUBWINDOW_TOKEN
|
static int |
ADD_DUPLICATE_ADD
|
static int |
ADD_FLAG_APP_VISIBLE
|
static int |
ADD_FLAG_IN_TOUCH_MODE
|
static int |
ADD_MULTIPLE_SINGLETON
|
static int |
ADD_NOT_APP_TOKEN
|
static int |
ADD_OKAY
|
static int |
ADD_PERMISSION_DENIED
|
static int |
ADD_STARTING_NOT_NEEDED
|
static int |
RELAYOUT_FIRST_TIME
This is the first time the window is being drawn, so the client must call drawingFinished() when done |
static int |
RELAYOUT_IN_TOUCH_MODE
The user is navigating with keys (not the touch screen), so navigational focus should be shown. |
| Constructor Summary | |
|---|---|
WindowManagerImpl()
|
|
| Method Summary | |
|---|---|
void |
addView(View view)
|
void |
addView(View view,
ViewGroup.LayoutParams params)
|
void |
addViewNesting(View view,
ViewGroup.LayoutParams params)
|
void |
closeAll()
|
void |
closeAll(IBinder token,
String who,
String what)
|
(package private) void |
finishRemoveViewLocked(View view,
int index)
|
static WindowManagerImpl |
getDefault()
|
Display |
getDefaultDisplay()
Use this method to get the default Display object. |
void |
removeView(View view)
|
void |
removeViewImmediate(View view)
Special variation of ViewManager.removeView(android.view.View) that immediately invokes
the given view hierarchy's View.onDetachedFromWindow() methods before returning. |
(package private) View |
removeViewLocked(int index)
|
void |
updateViewLayout(View view,
ViewGroup.LayoutParams params)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int RELAYOUT_IN_TOUCH_MODE
public static final int RELAYOUT_FIRST_TIME
public static final int ADD_FLAG_APP_VISIBLE
public static final int ADD_FLAG_IN_TOUCH_MODE
public static final int ADD_OKAY
public static final int ADD_BAD_APP_TOKEN
public static final int ADD_BAD_SUBWINDOW_TOKEN
public static final int ADD_NOT_APP_TOKEN
public static final int ADD_APP_EXITING
public static final int ADD_DUPLICATE_ADD
public static final int ADD_STARTING_NOT_NEEDED
public static final int ADD_MULTIPLE_SINGLETON
public static final int ADD_PERMISSION_DENIED
| Constructor Detail |
|---|
public WindowManagerImpl()
| Method Detail |
|---|
public static WindowManagerImpl getDefault()
public void addView(View view)
public void addView(View view,
ViewGroup.LayoutParams params)
addView in interface ViewManager
public void addViewNesting(View view,
ViewGroup.LayoutParams params)
public void updateViewLayout(View view,
ViewGroup.LayoutParams params)
updateViewLayout in interface ViewManagerpublic void removeView(View view)
removeView in interface ViewManagerpublic void removeViewImmediate(View view)
WindowManagerViewManager.removeView(android.view.View) that immediately invokes
the given view hierarchy's View.onDetachedFromWindow() methods before returning. This is not
for normal applications; using it correctly requires great care.
removeViewImmediate in interface WindowManagerview - The view to be removed.View removeViewLocked(int index)
void finishRemoveViewLocked(View view,
int index)
public void closeAll(IBinder token,
String who,
String what)
public void closeAll()
public Display getDefaultDisplay()
WindowManager
getDefaultDisplay in interface WindowManager
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||