-
Notifications
You must be signed in to change notification settings - Fork 2k
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
一个比较冷门的问题,如果是多屏显示,对副屏适配可能存在问题 #278
Comments
什么问题 |
副屏不会生效,因为副屏的display和主屏不同,在副屏presentation初始化过程中会根据display生成context,getResource和主屏获取到的也就不同 |
这个是类似的 issues。 可以参照上面这个回答,看是否能重写 ContextWrapper 和他的 getResources() 返回一个经过适配的 Resources,如果不行的话,那就没办法了,Presentation 可能不允许这样做,也就是 Presentation 用不了所有今日头条适配方案,那就换其他适配方案 |
在 Presentation的构造函数里,修改DisplayMetrics的density即可 |
@Kidlite 请问能贴下代码吗 |
请问这个问题您有解决的办法吗 |
Environment
Bug Description:
Log:
Screenshot
Related Code:
Others:
The text was updated successfully, but these errors were encountered: