android7.0 PopupWindow showAsDropDown问题
关键代码:timeMenuWindow.showAsDropDown(selectTimeLayout);
在android7.0以下都是正常的。
android7.0就有问题
求指点~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
关键代码:timeMenuWindow.showAsDropDown(selectTimeLayout);
在android7.0以下都是正常的。
android7.0就有问题
求指点~
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
可以,完美解决,找了半天问题,感谢~
没有~
解决没有?
可以,妥妥的解决了~
遇到同样的问题
PopupWindow:
Android 7.0之前,在指定位置弹出popupwindow可以用showAsDropDown(View anchor, int xoff, int yoff),showAtLocation(View parent, int gravity, int x, int y)。但在android 7.0上,用showAsDropDown()在popupwindow为全屏时,会有弹出位置异常情况,需用showAtLocation()才能正常显示:
参考:http://blog.csdn.net/dxxs19/article/details/53572833