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

我想知道能不能扩展一下。支持drawable #59

Open
DavidMGT opened this issue Jul 18, 2018 · 2 comments
Open

我想知道能不能扩展一下。支持drawable #59

DavidMGT opened this issue Jul 18, 2018 · 2 comments

Comments

@DavidMGT
Copy link

比如多主题的颜色。我希望能增加接口。drawable也可以替换那就很强大了 @ColorRes
int getThemeColorId(Context context, int colorId, String theme) {
switch (colorId) {
case R.color.theme_color_primary:
return context.getResources().getIdentifier(theme, "color", getPackageName());
case R.color.theme_color_primary_dark:
return context.getResources().getIdentifier(theme + "_dark", "color", getPackageName());
case R.color.theme_color_primary_trans:
return context.getResources().getIdentifier(theme + "_trans", "color", getPackageName());

@xyczero
Copy link
Member

xyczero commented Aug 23, 2018

这个接口用来自定义颜色替换的规则, 想增加什么接口?

@DaveBoy
Copy link

DaveBoy commented May 21, 2019

他想自定义其他资源比如图片的替换规则

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