Пример #1
0
 @Override
 public void setContentView(View view, LayoutParams params) {
   if (requestDecorView(view, params, -1)) {
     mDecorView.removeAllViewsInLayout();
     mDecorView.addView(view, params);
   }
 }
Пример #2
0
 @Override
 public void setContentView(int layoutResID) {
   if (requestDecorView(null, null, layoutResID)) {
     mDecorView.removeAllViewsInLayout();
     getLayoutInflater().inflate(layoutResID, mDecorView, true);
   }
 }