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

无法与换肤库skin-support同时使用 #130

Closed
ghost opened this issue Jun 7, 2021 · 4 comments
Closed

无法与换肤库skin-support同时使用 #130

ghost opened this issue Jun 7, 2021 · 4 comments

Comments

@ghost
Copy link

ghost commented Jun 7, 2021

No description provided.

@JavaNoober
Copy link
Owner

你试一下,在super.onCreate之后调用BackgroundLibrary.inject2(context);或者BackgroundLibrary.inject(context);,还是无效,就尝试xml中把view替换成blview试试

@JavaNoober
Copy link
Owner

取消bl的自动注入,换肤也是一个layoutfactroy,理论上在换肤框架设置layoutfactroy后面调用BackagroundLibrary.inject应该就行

@JavaNoober
Copy link
Owner

最新解决方法:在application加入以下代码:

{
    BLAutoInjectController.setEnableAutoInject(false);
}

然后在activity的super.onCreate和setContentView之间加入
BackgroundLibrary.inject(this);

@jarkeet
Copy link

jarkeet commented Jun 9, 2022

最新解决方法:在application加入以下代码:

{
    BLAutoInjectController.setEnableAutoInject(false);
}

然后在activity的super.onCreate和setContentView之间加入 BackgroundLibrary.inject(this);

这样试了再某些低版本手机仍存在问题

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