gpt4 book ai didi

android - android 中的 getDecorView() 和 peekDecorView() 有什么区别

转载 作者:行者123 更新时间:2023-11-29 20:02:19 29 4
gpt4 key购买 nike

getDecorView() 和 peekDecorView() 有什么区别,他们返回什么

最佳答案

获取DecoreView:

Retrieve the top-level window decor view (containing the standard window frame/decorations and the client's content inside of that), which can be added as a window to the window manager.

Return : the top-level window decor view. 

peekDecorView() :

Retrieve the current decor view, but only if it has already been created; otherwise returns null.

Return :  the top-level window decor or null.

关于android - android 中的 getDecorView() 和 peekDecorView() 有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36098070/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com