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

插件式换肤不生效 #445

Open
ilkeew opened this issue Apr 26, 2021 · 3 comments
Open

插件式换肤不生效 #445

ilkeew opened this issue Apr 26, 2021 · 3 comments

Comments

@ilkeew
Copy link

ilkeew commented Apr 26, 2021

Application 里面配置了
Slog.DEBUG = true;
SkinCompatManager.withoutActivity(mInstance).loadSkin();//换肤

BaseActivity extends AppCompatActivity
重写了
@nonnull
@OverRide
public AppCompatDelegate getDelegate() {
return SkinAppCompatDelegateImpl.get(this, this);
}

执行:
SkinCompatManager.getInstance().loadSkin("night.skin", SkinCompatManager.SKIN_LOADER_STRATEGY_ASSETS);

回调方法里面执行了onStrat -> onSuccess
但是换肤就是不成功,没有任何效果。也没有看到log相关日志之类的。
项目维护,不知道动了哪个地方,之前的night.skin 是确保没有问题的。

求大佬帮助啊~ 无法定位问题

@LtlittleBrother
Copy link

你的问题解决了么,我也遇到了同样的问题

@ilkeew
Copy link
Author

ilkeew commented May 24, 2021

文档中没有写到用 extends SkinCompatActivity
我尝试了通过继承SkinCompat 解决了换肤的问题,具体原因不清楚

@liaozhoubei
Copy link

排查加载路径问题,试了很久,发现即使路径出了文件它也不报错

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

3 participants