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

AdaptScreenUtils的使用问题 #776

Closed
sun1594732 opened this issue Dec 28, 2018 · 5 comments
Closed

AdaptScreenUtils的使用问题 #776

sun1594732 opened this issue Dec 28, 2018 · 5 comments

Comments

@sun1594732
Copy link

之前一直使用1.21.1的ScreenUtils适配,更新使用1.22.7的 AdaptScreenUtils的适配后无效,请问一下是adaptHeight和adaptWidth同时使用还是单独定义一个维度,这俩种情况我都有试过但是没有效果,现在的pt适配是需要改变之前布局的dp为pt吗?

@Blankj
Copy link
Owner

Blankj commented Dec 28, 2018

#758
看下文章介绍吧,适配原理就是单维度百分比适配,另一维度可滚动即可。

@Blankj Blankj closed this as completed Dec 28, 2018
@WWGtest
Copy link

WWGtest commented Apr 8, 2019

请问在哪里能找到具体完整的 AdaptScreenUtils.adaptWidth() 调用流程?

@XuanYuan1122
Copy link

全局适配的话 在哪里调用呢?

@Blankj
Copy link
Owner

Blankj commented Apr 18, 2019

@XuanYuan1122 baseactivity 里写了就行

@Blankj
Copy link
Owner

Blankj commented Apr 18, 2019

@WWGtest 什么意思

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

4 participants