android fragment 使用popupwindow,弹出时在跳转前上一个Activity页面上,求解
Context context = getContext();
View contentView = LayoutInflater.from(getActivity()).inflate(R.layout.exam_add1, null);
mPopWindow = new PopupWindow(contentView,
ViewGroup.LayoutParams.WRAP_CONTENT, ViewGroup.LayoutParams.WRAP_CONTENT, true);
View parent = getView();
mPopWindow.showAtLocation(getView(), Gravity.CENTER, 0, 0);
darkenBackground(0.2f);
页面逻辑是一个fragment Activity跳转到 下一个Fragment Activity,popupwindow是在当前fragment下操作显示,但显示在上一个Activity上,是什么原因,求教
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论