WindowManager译
2020-12-13 02:22
Class Overview类的概览
The interface that apps use to talk to the window manager.
Use Context.getSystemService(Context.WINDOW_SERVICE)
to
get one of these.
Each window manager instance is bound to a particular Display
.
To obtain a WindowManager
for
a different display, use createDisplayContext(Display)
to
obtain a Context
for
that display, then
use Context.getSystemService(Context.WINDOW_SERVICE)
to
get the WindowManager.
The simplest way to show a window on another display is to create
a Presentation
.
The presentation will automatically obtain a WindowManager
and Context
for
that display.
WindowManager是一个接口,apps使用它和窗口管理器对话。
使用Context.getSystemService(Context.WINDOW_SERVICE)去得到这样的一个接口。
每一个窗口管理器实例绑定到一个特定的DisPlay中。若要为不同的display获得一个WindowManager,先使用createDisplayContext(Display)方法为那个display获得一个Context,然后使用Context.getSystemService(Context.WINDOW_SERVICE)方法获得WindowManager。
在另外一个display上显示一个窗口的最简单的方式是创造一个Pesentation。这个presentation 将会自动为那个display获得一个WindowManager和Context。
See Also
getSystemService(String)
WINDOW_SERVICE
上一篇:JSP简介