Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
両者の関係がよくわかりません。私が理解しているように、ViewRootImplはウィンドウごとのメインビューであるmViewを保持し、DecorViewはウィンドウごとのメインビューでもありますか?
ViewRootImpl内のmViewはDecorViewであることが判明したので、これは私自身の質問に答えます
ViewRootImplはビュー階層の最上位であり、ViewとWindowManagerの間に必要なプロトコルを実装します。
DecorViewは、ウィンドウのビュー階層の真のルートです。これには、「装飾」(つまり、ウィンドウのタイトル)とコンテンツビューの両方が含まれます。