Search in sources :

Example 1 with WindowDecorView

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;
}
Also used : LayoutParams(android.view.ViewGroup.LayoutParams) WindowDecorView(org.holoeverywhere.widget.WindowDecorView)

Aggregations

LayoutParams (android.view.ViewGroup.LayoutParams)1 WindowDecorView (org.holoeverywhere.widget.WindowDecorView)1