You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
描述你的问题
我的fragment是个播放器的功能,里面用到了SurfaceView和MediaPlayer,按照下面的方式加入fragment,打开关闭弹窗后,弹窗以外的模糊背景变黑了
`public class CenterFragmentPop extends CenterPopupView {
private final Fragment mCenterFragment;
public static CenterFragmentPop create(Context mContext, Fragment fragment, XPopupCallback callback) {
return (CenterFragmentPop) new XPopup.Builder(mContext)
.hasBlurBg(true)
.hasStatusBar(false)
.isViewMode(true)
.setPopupCallback(callback)
.dismissOnTouchOutside(false)
.dismissOnBackPressed(false)
.asCustom(new CenterFragmentPop(mContext, fragment));
}
public CenterFragmentPop(@NonNull @NotNull Context context, Fragment fragment) {
super(context);
mCenterFragment = fragment;
}
@Override
protected int getImplLayoutId() {
return R.layout.pop_center_fragment;
}
@Override
protected void onCreate() {
super.onCreate();
if (null == mCenterFragment) {
return;
}
FragmentActivity activity = (FragmentActivity) getContext();
FragmentManager fragmentManager = activity.getSupportFragmentManager();
fragmentManager.beginTransaction().add(R.id.fl_center_pop_layout, mCenterFragment).commitAllowingStateLoss();
}
}`
The text was updated successfully, but these errors were encountered:
XPopup版本
如2.9.19
手机系统和型号
Xiaomi Pad 6 android 13
描述你的问题
我的fragment是个播放器的功能,里面用到了SurfaceView和MediaPlayer,按照下面的方式加入fragment,打开关闭弹窗后,弹窗以外的模糊背景变黑了
`public class CenterFragmentPop extends CenterPopupView {
private final Fragment mCenterFragment;
}`
The text was updated successfully, but these errors were encountered: