Skip to content
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

缩放设置的宽高参数写反了;获取的view尺寸有误 #4

Closed
TomeOkin opened this issue Nov 4, 2016 · 1 comment
Closed

Comments

@TomeOkin
Copy link

TomeOkin commented Nov 4, 2016

  1. 缩放设置的宽高参数写反了

  2. 如果view部分位于屏幕外,getGlobalVisibleRect 获取的尺寸不是理想值,可以改为:

int out[] = new int[2];
view.getLocationOnScreen(out);
return new Rect(out[0], out[1], out[0] + view.getWidth(), out[1] + view.getHeight());
@ImmortalZ
Copy link
Owner

ImmortalZ commented Nov 13, 2016

进行了相应的修改,更正。多谢反馈

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