最上位のViewを取得します。
ソースコード
Window window = getWindow(); View view = window.getDecorView();
Decorってなんじゃ
decor : 【名】装飾物、装飾様式、飾り付け、装飾(品)ふむ。デコレーションとかのあれか。
Android Developerみてみた
http://developer.android.com/reference/android/view/Window.html#getDecorView()public abstract View getDecorView ()
Added in API level 1
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.
Note that calling this function for the first time "locks in" various window characteristics as described in
setContentView(View, android.view.ViewGroup.LayoutParams)
.Returns
- Returns the top-level window decor view.
装飾Viewってのがすでに分からんけど"top-level window decor view"が取得できるのは間違いないようです。そのうち分かるようになるかな。