Window是什么?
1.先看官方的定义:1
2
3
4
5
6
7
8
9
10
11
12
13/**
* Abstract base class for a top-level window look and behavior policy. An
* instance of this class should be used as the top-level view added to the
* window manager. It provides standard UI policies such as a background, title
* area, default key processing, etc.
*
* <p>The only existing implementation of this abstract class is
* android.view.PhoneWindow, which you should instantiate when needing a
* Window.
*/
一、作为顶层窗口的抽象类,并规范了窗口的外观与行为,同时也是顶层view的窗口管理器。
二、提供诸如背景,标题、区域、默认事件处理等等。
三、只有一个唯一实现类->PhoneWindow