-
Notifications
You must be signed in to change notification settings - Fork 636
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
期望控件覆盖在dialog上层,但是控件显示在dialog下层了 #176
Comments
作者能看到吗?这个问题太重要了 因为这个控件需要在dialog上引用 |
收到,正在修复,请等待 |
同问,我也遇到这个问题了。 |
能否贴一下具体如何在diaolog中使用的?我这边跟踪一下,方便解决 |
使用方法和activity一样,只不过把控件放在dialog里面进行调用。 这种情况问题出在popwindow显示的parentView应该是dialog的rootView,而我们使用的是window。如下: sharePopuWindown.showAtLocation(parentView, Gravity.BOTTOM | Gravity.CENTER_HORIZONTAL, 0, 0); 最好可以提供一个方法给外部调用 来设置传入的view对象 |
解决;了吗 |
可以使用反射,把showAtLocation的第一个View参数换成Dialog里面的就行了,目前针对5.2.2版本,我尝试了一下,可行。但我是用fragmentDialog来测试的,具体代码是:
//开始反射获取 |
解决了,看上面 |
OK |
No description provided.
The text was updated successfully, but these errors were encountered: