gpt4 book ai didi

android - Android 架构中的窗口管理器

转载 作者:行者123 更新时间:2023-11-29 15:23:58 24 4
gpt4 key购买 nike

我是 Android 新手,正在学习 Android 架构。我不明白 WindowManager 应该做什么。

窗口管理器在 Android 中有什么作用?

最佳答案

正如 Dianne Hackborn 在 android-framework 邮件列表中所写:

The window manager creates surfaces for the application, and applicationsdraw directly into those surfaces without going through the window manager. (source)

[T]he window manager is responsible for organizing the screen,applications don't get to decide that. The window manager allocatessurfaces and decides where they go and how they are layered; it nevertouches their bits, which is up to the application. (source)

关于android - Android 架构中的窗口管理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14952574/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com