フルスクリーンに拡張したいWebViewがあります。ユーザーはそれを操作するので、展開するときに何らかの状態を維持する必要があります。理想的なプロセスは次のとおりです。
- Remove WebView from its parent
- Put WebView at the top of the current View hierarchy with `FILL_PARENT` for width and height
後で、WebViewを元に戻す必要があります。
- Remove WebView from top of the hierarchy
- Restore the old hierarchy
- Put WebView back where it was with its previous setting for width and height
についてgetRootView
は知っていますが、使い方がわかりません。何DecorView
ですか?
私が上で説明した展開と折りたたみの動作を実現するためのサンプルコードを誰かが持っているなら、私は本当に感謝しています。ありがとう!