Office Hours — Today, September 13

Saturday, September 10

Sep 13
3:50 PM
Mark M.
has entered the room
4:30 PM
Lefko
has entered the room
Mark M.
hello, Lefko!
how can I help you today?
Lefko
wow Im the only one here
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
4:35 PM
Mark M.
um, can you be more specific?
4:35 PM
Lefko
more like referring to window manager and other classes that I see in stacktraces from time to time
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
activities are rendered into a window
Dialog contents are rendered into a window
a Toast is a window
the drop-down from Spinner is a window
overflow menus are windows
and so on
Lefko
and the OS is responsible for windows or the activity?
Mark M.
that depends on what you mean by "responsible"
the activity, or things created by the activity (e.g., widgets), draw into windows
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
applications define what go into windows
the actual window compositing is AFAIK handled by the OS, due to the Z-axis ordering stuff
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!
4:40 PM
Mark M.
you
you're welcome!
Lefko
has left the room
5:00 PM
Mark M.
turned off guest access

Saturday, September 10

 

Office Hours

People in this transcript

  • Lefko
  • Mark Murphy