开发者

Whether can set the theme of ProjectA to ProjectB?

开发者 https://www.devze.com 2023-02-21 01:16 出处:网络
Whether can set the theme of ProjectA to ProjectB? how t开发者_如何学Goo modify framework to support it?

Whether can set the theme of ProjectA to ProjectB? how t开发者_如何学Goo modify framework to support it? The code like that:

friendContext = this.createPackageContext("com.android.projecta",
            Context.CONTEXT_IGNORE_SECURITY);
Theme theme=friendContext.getTheme();
setTheme(theme);

There is not api like: setTheme with Theme object.

This idea is not so unreasonable or can not be realized?

0

精彩评论

暂无评论...
验证码 换一张
取 消