Office Hours —
Today, September 13
←
Saturday, September 10
Sep 13
3:50 PM
Mark M.
has entered the room
Sep 13
4:30 PM
Lefko
has entered the room
Mark M.
hello, Lefko!
Mark M.
how can I help you today?
Lefko
wow Im the only one here
Lefko
quite day I guess
Mark M.
yes
Lefko
anyway, I wanted to ask what windows are. I am not referring to 7.0 mullti window
Sep 13
4:35 PM
Mark M.
um, can you be more specific?
Sep 13
4:35 PM
Lefko
more like referring to window manager and other classes that I see in stacktraces from time to time
Lefko
i mean what is the function of a Window in android
Mark M.
we usually don't work with windows directly, but under the covers, everything gets rendered into a window
Mark M.
activities are rendered into a window
Mark M.
Dialog contents are rendered into a window
Mark M.
a Toast is a window
Mark M.
the drop-down from Spinner is a window
Mark M.
overflow menus are windows
Mark M.
and so on
Lefko
and the OS is responsible for windows or the activity?
Mark M.
that depends on what you mean by "responsible"
Mark M.
the activity, or things created by the activity (e.g., widgets), draw into windows
Mark M.
the OS handles Z-axis compositing of windows, for overlaps
Lefko
what does that drawing?
Mark M.
well, in the case of a widget, onDraw()
Lefko
is that application level or OS level
Mark M.
the Canvas that is handed winds up being applied to a window
Mark M.
applications define what go into windows
Mark M.
the actual window compositing is AFAIK handled by the OS, due to the Z-axis ordering stuff
Mark M.
but you're getting outside my area of expertise there
Lefko
so the OS creates a window and the application tells it what to render inside and preferred size and placement etc
Mark M.
yes, at a high level
Lefko
ok thats pretty much it for me for today. thanks!
Sep 13
4:40 PM
Mark M.
you
Mark M.
you're welcome!
Lefko
has left the room
Sep 13
5:00 PM
Mark M.
turned off guest access
←
Saturday, September 10
Office Hours
People in this transcript
Lefko
Mark Murphy