在popopwindows里面使用fragment,但是在popopwindows里面找不到它的父控件,而使用DialogFragment,可以实现全屏Dialog(Popup)
要在DialogFragment的oncreate里面做
@Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setStyle(DialogFragment.STYLE_NORMAL, android.R.style.Theme_Black_NoTitleBar_Fullscreen); }