{"action":"created","issue":{"url":"https://api.github.com/repos/JessYanCoding/AndroidAutoSize/issues/82","repository_url":"https://api.github.com/repos/JessYanCoding/AndroidAutoSize","labels_url":"https://api.github.com/repos/JessYanCoding/AndroidAutoSize/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/JessYanCoding/AndroidAutoSize/issues/82/comments","events_url":"https://api.github.com/repos/JessYanCoding/AndroidAutoSize/issues/82/events","html_url":"https://github.com/JessYanCoding/AndroidAutoSize/issues/82","id":378181025,"node_id":"MDU6SXNzdWUzNzgxODEwMjU=","number":82,"title":"使用副单位适配出现的问题","user":{"login":"FynnJason","id":22359466,"node_id":"MDQ6VXNlcjIyMzU5NDY2","avatar_url":"https://avatars3.githubusercontent.com/u/22359466?v=4","gravatar_id":"","url":"https://api.github.com/users/FynnJason","html_url":"https://github.com/FynnJason","followers_url":"https://api.github.com/users/FynnJason/followers","following_url":"https://api.github.com/users/FynnJason/following{/other_user}","gists_url":"https://api.github.com/users/FynnJason/gists{/gist_id}","starred_url":"https://api.github.com/users/FynnJason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FynnJason/subscriptions","organizations_url":"https://api.github.com/users/FynnJason/orgs","repos_url":"https://api.github.com/users/FynnJason/repos","events_url":"https://api.github.com/users/FynnJason/events{/privacy}","received_events_url":"https://api.github.com/users/FynnJason/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-11-07T08:09:19Z","updated_at":"2018-11-08T09:14:17Z","closed_at":"2018-11-07T08:44:58Z","author_association":"NONE","body":"### Environment\r\n- [x] Autosize Version: 1.0.5\r\n- [x] Target Android Version: 8.1\r\n- [x] Device Model: 小米8\r\n- [x] Device Resolution: 2248*1080\r\n- [x] Design Size On AndroidManifest: 1125*2436\r\n\r\n\r\n### Bug Description:\r\n注册清单已填写设计图的分辨率，在Application中初始化\r\n```\r\nAutoSizeConfig.getInstance().getUnitsManager().setSupportSubunits(Subunits.PT);\r\n```\r\n按理说，使用副单位，默认是支持原项目的DP，但是启动APP后，整个项目无法兼容DP。我将Activity实现CancelAdapt 后，项目正常显示了。那么现在问题来了，既然默认是支持原项目DP，为什么还要手动将所有Activity去实现取消适配？现在我是在BaseActivity中实现的，如果项目迭代的新界面要都用副单位来适配，那我岂不是要重新创建一个单独的基类来继承吗？\r\n\r\n### Log:\r\n\r\n### Screenshot\r\n![](https://note.youdao.com/yws/public/resource/a66f5241d847409363a87a0f907b08d8/xmlnote/45E04E6A973446DB8DAFC248688C3CBE/2616)\r\n\r\n\r\n### Related Code:\r\n\r\n\r\n### Others:\r\n"},"comment":{"url":"https://api.github.com/repos/JessYanCoding/AndroidAutoSize/issues/comments/436924991","html_url":"https://github.com/JessYanCoding/AndroidAutoSize/issues/82#issuecomment-436924991","issue_url":"https://api.github.com/repos/JessYanCoding/AndroidAutoSize/issues/82","id":436924991,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjkyNDk5MQ==","user":{"login":"FynnJason","id":22359466,"node_id":"MDQ6VXNlcjIyMzU5NDY2","avatar_url":"https://avatars3.githubusercontent.com/u/22359466?v=4","gravatar_id":"","url":"https://api.github.com/users/FynnJason","html_url":"https://github.com/FynnJason","followers_url":"https://api.github.com/users/FynnJason/followers","following_url":"https://api.github.com/users/FynnJason/following{/other_user}","gists_url":"https://api.github.com/users/FynnJason/gists{/gist_id}","starred_url":"https://api.github.com/users/FynnJason/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FynnJason/subscriptions","organizations_url":"https://api.github.com/users/FynnJason/orgs","repos_url":"https://api.github.com/users/FynnJason/repos","events_url":"https://api.github.com/users/FynnJason/events{/privacy}","received_events_url":"https://api.github.com/users/FynnJason/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T09:14:17Z","updated_at":"2018-11-08T09:14:17Z","author_association":"NONE","body":"我的问题似乎有点头目，我现在细心阅读一下您的文章，因为之前也一直看了几遍，只是没有细心。"}}
{"actor":{"display_login":"FynnJason"}}