/**
-
Window type: an application window that serves as the “base” window
-
of the overall application; all other application windows will
-
appear on top of it.
-
In multiuser systems shows only on the owning user’s window.
-
ZMS:基础窗口-其他应用窗口会显示在此窗口之上
*/
public static final int TYPE_BASE_APPLICATION = 1;
/**
-
Window type: a normal application window. The {@link #token} must be
-
an Activity token identifying who the window belongs to.
-
In multiuser systems shows only on the owning user’s window.
-
ZMS:普通应用窗口-此窗口需要归属于Activity,多用户系统中仅仅在对应用户的窗口中显示
*/
public static final int TYPE_APPLICATION = 2;
/**
-
Window type: special application window that is displayed while the
-
application is starting. Not for use by applications themselves;
-
this is used by the system to display something until the
-
application can show its own windows.
-
In multiuser systems shows on all users’ windows.
-
ZMS:应用启动窗口-应用启动显示的窗口,不受应用本身控制。由系统在应用显示应用本身的窗口之前显示。
*/
public static final int TYPE_APPLICATION_STARTING = 3;
/**
-
End of types of application windows.
-
ZMS:终极应用窗口-所有Activity默认的窗口类型都是TYPE_APPLICATION,
-
WindowManagerService在进行窗口叠加时,会动态改变应用窗口的层值,但不会大于99。
*/
public static final int LAST_APPLICATION_WINDOW = 99;
/**
-
Start of types of sub-windows. The {@link #token} of these windows
-
must be set to the window they are attached to. These types of
-
windows are kept next to their attached window in Z-order, and their
-
coordinate space is relative to their attached window.
-
ZMS:首个子窗口-依附于父窗口。子窗口在Z轴上邻接父窗口,且协调空间与父窗口相关。
-
子窗口是指该窗口必须要有一个父窗口,父窗口可以是一个应用类型窗口,也可以是任何其他类型的窗口。
*/
public static final int FIRST_SUB_WINDOW = 1000;
/**
-
Window type: a panel on top of an application window. These windows
-
appear on top of their attached window.
-
ZMS:应用窗口子窗口-PopupWindow的默认类型
*/
public static final int TYPE_APPLICATION_PANEL = FIRST_SUB_WINDOW;
/**
-
Window type: window for showing media (such as video). These windows
-
are displayed behind their attached window.
-
ZMS:用来显示Media的窗口
*/
public static final int TYPE_APPLICATION_MEDIA = FIRST_SUB_WINDOW+1;
/**
-
Window type: a sub-panel on top of an application window. These
-
windows are displayed on top their attached window and any
-
{@link #TYPE_APPLICATION_PANEL} panels.
-
ZMS:TYPE_APPLICATION_PANEL的子窗口
*/
public static final int TYPE_APPLICATION_SUB_PANEL = FIRST_SUB_WINDOW+2;
/** Window type: like {@link #TYPE_APPLICATION_PANEL}, but layout
-
of the window happens as that of a top-level window, not
-
as a child of its container.
-
ZMS:OptionMenu、ContextMenu的默认类型
*/
public static final int TYPE_APPLICATION_ATTACHED_DIALOG = FIRST_SUB_WINDOW+3;
/**
-
Window type: window for showing overlays on top of media windows.
-
These windows are displayed between TYPE_APPLICATION_MEDIA and the
-
application window. They should be translucent to be useful. This
-
is a big ugly hack so:
-
@hide
-
ZMS:TYPE_APPLICATION_MEDIA的重影窗口,显示在TYPE_APPLICATION_MEDIA和应用窗口之间
*/
public static final int TYPE_APPLICATION_MEDIA_OVERLAY = FIRST_SUB_WINDOW+4;
/**
-
End of types of sub-windows.
-
ZMS:最后一个子窗口-创建子窗口时,客户端可以指定窗口类型介于1000-1999之间,
-
而WindowManagerService在进行窗口叠加时,会动态调整层值。
*/
public static final int LAST_SUB_WINDOW = 1999;
/**
-
Start of system-specific window types. These are not normally
-
created by applications.
-
ZMS:首个系统窗口-系统窗口,系统窗口不需要对应任何Activity,也不需要有父窗口,
-
对于应用程序而言,理论上是无法创建系统窗口的,因为所有的应用程序都没有这个权限,
-
然而系统进程却可以创建系统窗口。
*/
public static final int FIRST_SYSTEM_WINDOW = 2000;
/**
-
Window type: the status bar. There can be only one status bar
-
window; it is placed at the top of the screen, and all other
-
windows are shifted down so they are below it.
-
In multiuser systems shows on all users’ windows.
-
ZMS:状态栏窗口,层值2000。
*/
public static final int TYPE_STATUS_BAR = FIRST_SYSTEM_WINDOW;
/**
-
Window type: the search bar. There can be only one search bar
-
window; it is placed at the top of the screen.
-
In multiuser systems shows on all users’ windows.
-
ZMS:搜索条窗口,层值2001。
*/
public static final int TYPE_SEARCH_BAR = FIRST_SYSTEM_WINDOW+1;
/**
-
Window type: phone. These are non-application windows providing
-
user interaction with the phone (in particular incoming calls).
-
These windows are normally placed above all applications, but behind
-
the status bar.
-
In multiuser systems shows on all users’ windows.
-
ZMS:来电显示窗口
*/
public static final int TYPE_PHONE = FIRST_SYSTEM_WINDOW+2;
/**
-
Window type: system window, such as low power alert. These windows
-
are always on top of application windows.
-
In multiuser systems shows only on the owning user’s window.
-
ZMS:警告对话框
*/
public static final int TYPE_SYSTEM_ALERT = FIRST_SYSTEM_WINDOW+3;
/**
-
Window type: keyguard window.
-
In multiuser systems shows on all users’ windows.
-
@removed
-
ZMS:锁屏
*/
public static final int TYPE_KEYGUARD = FIRST_SYSTEM_WINDOW+4;
/**
-
Window type: transient notifications.
-
In multiuser systems shows only on the owning user’s window.
-
ZMS:Toast窗口
*/
public static final int TYPE_TOAST = FIRST_SYSTEM_WINDOW+5;
/**
-
Window type: system overlay windows, which need to be displayed
-
on top of everything else. These windows must not take input
-
focus, or they will interfere with the keyguard.
-
In multiuser systems shows only on the owning user’s window.
-
ZMS:系统覆盖窗口,显示在所有窗口之上
*/
public static final int TYPE_SYSTEM_OVERLAY = FIRST_SYSTEM_WINDOW+6;
/**
-
Window type: priority phone UI, which needs to be displayed even if
-
the keyguard is active. These windows must not take input
-
focus, or they will interfere with the keyguard.
-
In multiuser systems shows on all users’ windows.
-
ZMS:在屏幕保护下的来电显示窗口
*/
public static final int TYPE_PRIORITY_PHONE = FIRST_SYSTEM_WINDOW+7;
/**
-
Window type: panel that slides out from the status bar
-
In multiuser systems shows on all users’ windows.
-
ZMS:滑动状态栏后出现的窗口
*/
public static final int TYPE_SYSTEM_DIALOG = FIRST_SYSTEM_WINDOW+8;
/**
-
Window type: dialogs that the keyguard shows
-
In multiuser systems shows on all users’ windows.
-
ZMS:锁屏弹出的对话框
*/
public static final int TYPE_KEYGUARD_DIALOG = FIRST_SYSTEM_WINDOW+9;
/**
-
Window type: internal system error windows, appear on top of
-
everything they can.
-
In multiuser systems shows only on the owning user’s window.
-
ZMS:系统错误窗口
*/
public static final int TYPE_SYSTEM_ERROR = FIRST_SYSTEM_WINDOW+10;
/**
-
Window type: internal input methods windows, which appear above
-
the normal UI. Application windows may be resized or panned to keep
-
the input focus visible while this window is displayed.
-
In multiuser systems shows only on the owning user’s window.
-
ZMS:输入法窗口
*/
public static final int TYPE_INPUT_METHOD = FIRST_SYSTEM_WINDOW+11;
/**
-
Window type: internal input methods dialog windows, which appear above
-
the current input method window.
-
In multiuser systems shows only on the owning user’s window.
-
ZMS:输入法中备选框对应的窗口
*/
自我介绍一下,小编13年上海交大毕业,曾经在小公司待过,也去过华为、OPPO等大厂,18年进入阿里一直到现在。
深知大多数初中级安卓工程师,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!
因此收集整理了一份《2024年最新Android移动开发全套学习资料》送给大家,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频
如果你觉得这些内容对你有帮助,可以添加下面V无偿领取!(备注Android)
多数初中级安卓工程师,想要提升技能,往往是自己摸索成长,但自己不成体系的自学效果低效又漫长,而且极易碰到天花板技术停滞不前!**
因此收集整理了一份《2024年最新Android移动开发全套学习资料》送给大家,初衷也很简单,就是希望能够帮助到想自学提升又不知道该从何学起的朋友,同时减轻大家的负担。
[外链图片转存中…(img-veg2VaJO-1710915442409)]
[外链图片转存中…(img-sBb4RAPK-1710915442410)]
[外链图片转存中…(img-tWlvPQUV-1710915442410)]
[外链图片转存中…(img-rRcp7aaF-1710915442411)]
由于文件比较大,这里只是将部分目录截图出来,每个节点里面都包含大厂面经、学习笔记、源码讲义、实战项目、讲解视频
如果你觉得这些内容对你有帮助,可以添加下面V无偿领取!(备注Android)
[外链图片转存中…(img-ysT3DL2P-1710915442411)]