What is an Android DecorView?

后端 未结 2 603
梦如初夏
梦如初夏 2021-01-30 10:17

http://developer.android.com/reference/android/view/Window.html#getDecorView():

Retrieve the top-level window decor view (containing the standard window

2条回答
  •  野性不改
    2021-01-30 11:00

    Seems that one of the places where it's best defined is in Romain Guy's Blog:

    The DecorView is the view that actually holds the window’s background drawable. Calling getWindow().setBackgroundDrawable() from your Activity changes the background of the window by changing the DecorView‘s background drawable. As mentioned before, this setup is very specific to the current implementation of Android and can change in a future version or even on another device.

提交回复
热议问题