Example usage for android.app DialogFragment STYLE_NO_FRAME

List of usage examples for android.app DialogFragment STYLE_NO_FRAME

Introduction

In this page you can find the example usage for android.app DialogFragment STYLE_NO_FRAME.

Prototype

int STYLE_NO_FRAME

To view the source code for android.app DialogFragment STYLE_NO_FRAME.

Click Source Link

Document

Style for #setStyle(int,int) : don't draw any frame at all; the view hierarchy returned by #onCreateView is entirely responsible for drawing the dialog.

Usage

From source file:es.esy.vivekrajendran.news.dialogs.DevDialog.java

@Override
public void onViewCreated(View view, @Nullable Bundle savedInstanceState) {
    super.onViewCreated(view, savedInstanceState);
    getDialog().requestWindowFeature(Window.FEATURE_NO_TITLE);
    if (getDialog().getWindow() != null) {
        Log.i("TAG", "onViewCreated: ");
        getDialog().getWindow().setBackgroundDrawableResource(R.drawable.frame);
    }//  w ww . j av a  2  s.  co  m
    setStyle(DialogFragment.STYLE_NO_FRAME, android.R.style.Theme);
}