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

在不同分辨率下不会自动缩放 #3

Open
lzyickobe opened this issue Jan 28, 2015 · 1 comment
Open

在不同分辨率下不会自动缩放 #3

lzyickobe opened this issue Jan 28, 2015 · 1 comment

Comments

@lzyickobe
Copy link

我在使用这个控件的时候,发现这个控件在不同分辨率下不会自动缩放,都保持一个大小,无法适配机型。

@lzyickobe
Copy link
Author

看了一下代码,在onMeasure()方法中,设置宽高是写死的,导致不会根据不同分辨率去计算大小。setMeasuredDimension((int) mMaskWidth,(int) (mMaskHeight + 2 * mExtendOffsetY));

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

1 participant