-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
androidx的布局适配 #614
Comments
你使用的代码已经包含 c710a18 了吗?提交注释说明了当时的情况,也是缺失了AndroidX自动安装的Factory。如果包含了,能方便修改一下 |
好的,我试一下 |
3f25c5c中包含了复现场景,由于对自动化测试不熟,我用了log的方式打印异常数据 |
shifujun
added a commit
to shifujun/Shadow
that referenced
this issue
Sep 18, 2021
由于ShadowLayoutInflater不再只是一个转调壳子,有了状态(mOriginalFactory等), 不能再总是new新的对象了。换了新对象就无法还原Factory了。 fixup! c710a18 fix Tencent#614
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
因为androidx是通过setFactory2来变换布局信息的,而插件的getLayoutInflater()丢失了androidx全局设入的factory2,
导致布局丢失了androidx的风格。我本地是通过这种方式做的暂时修复。希望您能修复一下
The text was updated successfully, but these errors were encountered: