bilibili / MagicaSakura

MagicaSakura 是 Android 多主题框架。~ is an Android multi theme library which supporting both daily colorful theme and night theme.
http://app.bilibili.com
Apache License 2.0
3.55k stars 468 forks source link

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

Open DavidMGT opened 6 years ago

DavidMGT commented 6 years ago

比如多主题的颜色。我希望能增加接口。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 commented 6 years ago

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

DaveBoy commented 5 years ago

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