Android ActivityManager 与 WindowManager

发布于 2025-01-04 17:22:59 字数 177 浏览 0 评论 0原文

有人可以在下面详细解释一下吗

1- What is the use of ActivityManager & WindowManager?
2- What is the difference between ActivityManager & WindowManager?

Can someone please explain below in detail,

1- What is the use of ActivityManager & WindowManager?
2- What is the difference between ActivityManager & WindowManager?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

顾冷 2025-01-11 17:22:59

窗口管理器:- 它负责组织屏幕。它分配表面并决定它们(应用程序)的去向以及它们如何分层。在为所有应用程序创建表面时,它们直接绘制到表面中,而无需通过窗口管理器。

活动管理器:- 使用活动管理器,Android 系统管理一系列处于不同状态(启动、运行、暂停、停止、销毁)的活动。

关于活动、窗户和表面的一些基本知识。

-An activity has one or more windows (e.g. dialogs)
-A window has one or more surfaces (e.g. surface views)
-However, in window manager, a window is called a session
-A surface is called a window
-And an activity becomes roughly a token

用于获取有关应用程序关键概念、活动和资源的信息 检查此链接

Window Manager :- It is responsible for organizing the screen. It allocates surface and decide where they(Applications) go and how they are layered. At create surface for all the applications and they draw directly into the surface without going through the Window Manager.

Activity Manager:- Using the Activity Manager, the Android System manages a stack of activities which are in different states (starting, running, paused, stopped, destroyed).

Some basic things regarding activitys, windows and surfaces.

-An activity has one or more windows (e.g. dialogs)
-A window has one or more surfaces (e.g. surface views)
-However, in window manager, a window is called a session
-A surface is called a window
-And an activity becomes roughly a token

for getting information regarding Applications key concepts, activities and resources check this link

半步萧音过轻尘 2025-01-11 17:22:59

class ActivityManager 管理任务、堆栈、何时显示和隐藏Window内容、销毁。系统更改感知,此类提供有关活动、服务和包含流程的信息并与之交互。

ActvityManager 属于 android.app

管理屏幕,它的状态、在堆栈中的位置和进程


interface WindowManager extends ViewManager WindowManagerImpl 管理视图和表面本身,专利视图如果存在,将它们绑定到特定的应用程序Display

WindowManager 属于 android.view

管理视图,它是 x,y,z 轴和

动画GoogleIO17 中的主题

class ActivityManager Manage task, stack, when to show and hide Window content, destroy. System change aware, This class gives information about, and interacts with, activities, services, and the containing process.

ActvityManager belongs to android.app

Manage screens, it's state, position in stack and process


interface WindowManager extends ViewManager WindowManagerImpl Manage views and surfaces itself, patent view if exist, bound them to a particular app Display

WindowManager belongs to android.view

Manage views, it's x,y and z axis and animations

P.s. Topic in GoogleIO17

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文