关键代码
@Override
public Dialog onCreateDialog( Bundle savedInstanceState ) {
final Dialog dialog = new Dialog( getActivity() );
dialog.requestWindowFeature( Window.FEATURE_NO_TITLE );
dialog.setContentView( rootView );
dialog.getWindow().setBackgroundDrawable( new ColorDrawable( Color.YELLOW ) );
dialog.getWindow().setLayout( ViewGroup.LayoutParams.MATCH_PARENT, ViewGroup.LayoutParams.MATCH_PARENT );
}