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

target sdk 升级到29. 皮肤包不兼容 #46

Open
mandroidstudy opened this issue Feb 9, 2022 · 3 comments
Open

target sdk 升级到29. 皮肤包不兼容 #46

mandroidstudy opened this issue Feb 9, 2022 · 3 comments

Comments

@mandroidstudy
Copy link

Field field = LayoutInflater.class.getDeclaredField("mFactorySet");这行代码

@mandroidstudy
Copy link
Author

@UnsupportedAppUsage(maxTargetSdk = Build.VERSION_CODES.P)
private boolean mFactorySet; 不能反射了

@StephenGiant
Copy link

使用cloneInContext 拷贝一个inflater 然后再设置factory

@StephenGiant
Copy link

BaseActivity需要你自己改造 使用自定义的Inflater 来 setContentView

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