Skip to content

屏幕边缘无法控制窗体位置。 #6

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

Closed
zombiu opened this issue Oct 12, 2019 · 2 comments
Closed

屏幕边缘无法控制窗体位置。 #6

zombiu opened this issue Oct 12, 2019 · 2 comments

Comments

@zombiu
Copy link

zombiu commented Oct 12, 2019

类似微信或者qq标题栏右上角弹框,在屏幕边缘,无法控制窗体位置。
锚点和箭头可以自己计算对齐,但是窗体想margin一下屏幕边缘,做不到啊!

@bingoogolapple
Copy link
Owner

bingoogolapple commented Oct 15, 2019

  • 通过下面两个属性来调整,但是不能移除到屏幕外部
setTipOffsetXDp(-10) // 设置浮窗在 x 轴的偏移量,等价于 marginRight 10
setTipOffsetYDp(5) // 设置浮窗在 y 轴的偏移量,等价于 marginTop 5

image

@zombiu
Copy link
Author

zombiu commented Oct 21, 2019

谢谢大佬!这个框架着实让人喜爱!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants