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

还未显示的界面不能够修改字体样式 #79

Open
MROU opened this issue Nov 23, 2018 · 1 comment
Open

还未显示的界面不能够修改字体样式 #79

MROU opened this issue Nov 23, 2018 · 1 comment

Comments

@MROU
Copy link

MROU commented Nov 23, 2018

需求:通过设置改变整个app字体,不能重启应用
问题:还未显示的界面不能够修改字体样式
分析原因:每一个activity对应一个LayoutInflater,在使用博主的SkinInflaterFactory时,通过TextViewRepository将view添加到mTextViewMap中,但是如果页面还未显示的时候,并没有调用SkinInflaterFactory去创建对应的view,将其放入mTextViewMap,所以想要通过设置改变整个app字体的时候,会在没有显示的界面无法修改字体。

暂时解决的方案,在app内通过adapter的notify自己控制字体显示,请问楼主对于应用这个需求使用themeskinning能否有其他方案解决?

@burgessjp
Copy link
Owner

最新的2.0.0版本也不行吗?

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