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

在开发sdk中使用mm副单位尽可能避免接入方冲突,但是如果接入方也使用该框架并使用其它副单位是不是就冲突了? #423

Open
myplxdm opened this issue Sep 1, 2022 · 1 comment

Comments

@myplxdm
Copy link

myplxdm commented Sep 1, 2022

在开发sdk中使用mm副单位尽可能避免影响接入方app,但是如果接入方也使用该框架并使用其它副单位是不是就冲突了,比如pt,in?有解决方案吗?

@JessYanCoding
Copy link
Owner

由于副单位都是通过修改 displayMetrics.xdpi 实现,多个基于不同设计图尺寸的副单位布局,肯定会相互影响的

单这个问题和使用主单位 dp 时,被系统、三方库影响,或影响系统、三方库的问题是类似,在 issues 中有很多解决方案

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