use of org.holoeverywhere.widget.WindowDecorView in project HoloEverywhere by Prototik.
the class Dialog method requestDecorView.
private boolean requestDecorView(View view, LayoutParams params, int layoutRes) {
if (mDecorView != null) {
return true;
}
mDecorView = new WindowDecorView(getContext());
mDecorView.setId(android.R.id.content);
mDecorView.setProvider(this);
if (view != null) {
mDecorView.addView(view, params);
} else if (layoutRes > 0) {
getLayoutInflater().inflate(layoutRes, mDecorView, true);
}
getWindow().setContentView(mDecorView, new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT));
return false;
}
Aggregations