Android初学习 - 全屏DialogFragment的实现

在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);

}
复制代码

你可能感兴趣的:(Android,java)