List of usage examples for android.view ViewManager addView
public void addView(View view, ViewGroup.LayoutParams params);
From source file:android.app.Activity.java
void makeVisible() { if (!mWindowAdded) { ViewManager wm = getWindowManager(); wm.addView(mDecor, getWindow().getAttributes()); mWindowAdded = true;/*from ww w. j av a 2 s .com*/ } mDecor.setVisibility(View.VISIBLE); }