Android GUI architecture - relation between Surface/view/window/canvas

前端 未结 4 563
我寻月下人不归
我寻月下人不归 2021-01-30 09:13

=========================

UPDATE: After several days googling and experiments, I have found the answers for most of those dumb questions. See the answers I submitted.

4条回答
  •  耶瑟儿~
    2021-01-30 09:46

    for the question

    What is the relationship between an activity and window? Will each Activity has a window?

    disagree with @pierrotlefou ,cause in google doc SurfaceView provides a dedicated surface, rather than Window.

    The surface is Z ordered so that it is behind the window holding its SurfaceView; the SurfaceView punches a hole in its window to allow its surface to be displayed.

提交回复
热议问题