Now let's look at the properties of window w m is the ultimate manager of Window.
So as we said earlier, window is like an employee w m or the window manager is the manager of this
employee, which is the window and the W rms is the ultimate boss.
So in order to facilitate the boss to manage its employees, some company rules need to be defined,
right?
So these company rules or protocol is the property of window.
This is defined in the internal class called layout params of window manager.
Understanding the property of window can help you to understand the internal principles of window management
service.
There are many kinds of properties of window and there are three kinds which are closely related to
application development.
They are the type of the window, the flag of the window and the keyboard related properties or the
soft input properties.
There are many types of window, such as application window, system error, window input, method window
or pop window toast dialog and so on.
In general, it is divided into three categories.
Application window, stop window, system window, each of which contains many types.
These are all defined in window manager in the static inner class called layout params.
Let's have a look at them.
Inside the window manager told Java there is a static class called layout params, so this defines all
these types of windows.
So let's look at the application window first.
So as we could see, the first application window type is set as one and the last application window
is set as 99.
So all the application windows will come under this range of values that is one and 99.
So as you could see here, we have first application window, then type base application, then type
application, which is two and type application starting three and type drawn application.
So there are different types defined here.
So just keep in mind that application windows are between the range from 1 to 99 and then comes the
sub window or the child windows.
So the child window comes between the range of 1000 and the last one is 1000, nine, 99.
So here as well, we could see different types between this range.
So type application media defined as first sub window plus 1001 and type application sub panel thousand
two.
So similarly, many of them are defined here we have the media overlay here, which is a sub window
plus four that is thousand plus 4004.
So even in case if you want to define a new window, new sub window, then you should be defining it
in between.
And you could select one of the number within the range 2000 to 1000 999.
Then comes the system windows the toast input method window system volume bar window.
The system error window are all examples of system windows.
The type definitions of system windows are defined here.
So the first system window starts at 2000 and there are around 40 types of system windows here.
So you can see type search, bar type, phone system, alert, key guard, post system overlay and so
on.
So if you come down further, can see the last one.
The last system window is 2999.
So the system window range is from 2000 to 2009, 99.
So the application window is range from 1 to 99 and the sub window is from 2000 to 1 999 and sys window
is from 2000 to 2000 999.
And there are around 40 types of system windows.