文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>What is the role of WindowManager in android frame

What is the role of WindowManager in android frame

时间:2009-03-29  来源:goandroid

I understand Windows manager is a separate service in the android
framework. I am wondering whether Window manager is like X Server or
not.
Lets say I have an activity with many views in it.
When an activity changes screen (i.e paint screen), Does it directly
draw on the drawing surface or request Window manager to draw on the
activity's behalf?
>>> The window manager creates surfaces for the application, and applications
draw directly into those surfaces without going through the window manager.
>>>>>> A surface is basically a pointer to block of memory. Why does a
separate process (i.e. Window Manager) have to create it? Why not the
activity itself create it?

Does Window manager need access to that memory?
If so, why?

>>>>>>>>>>>>

Because the window manager is responsible for organizing the screen,
applications don't get to decide that.  The window manager allocates
surfaces and decides where they go and how they are layered; it never
touches their bits, which is up to the application.

 

相关阅读 更多 +
排行榜 更多 +
房间毁灭模拟器最新版

房间毁灭模拟器最新版

休闲益智 下载
街头追逐者最新版

街头追逐者最新版

休闲益智 下载
弓箭手2内置作弊菜单

弓箭手2内置作弊菜单

休闲益智 下载