WindowManager
implements ViewManagerandroid.view.WindowManager |
Class Overview
The interface that apps use to talk to the window manager.
Use Context.getSystemService(Context.WINDOW_SERVICE)
to get one of these.
See Also
类概述
这个接口用于apps和window manager的通信
调用Context.getSystemService(Context.WINDOW_SERVICE)
来返回一个实例
public abstract Display getDefaultDisplay ()
Use this method to get the default Display object.
Returns
- default Display object
调用这个方法可以返回Display对象
public abstract void removeViewImmediate (View view)
Special variation of removeView(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.
Parameters
view | The view to be removed. |
---|
public interface
ViewManager
Class Overview
Interface to let you add and remove child views to an Activity. To get an instance of this class, call Context.getSystemService()
.
Context.getSystemService()
.获得实现这个接口的一个实例对象。