有没有办法根据主题创建自定义可绘制文件夹?

Is there any way to create custom drawable folders based on themes?

我有一个主题 -> theme1

它必须从 drawable-theme1 文件夹中选择 drawable。

有什么办法吗?

目前无法将主题名称用作可绘制文件夹qualifier

可用的限定符在 table 2 中 link: https://developer.android.com/guide/topics/resources/providing-resources#AlternativeResources

如果您无法使用提供的替代方案找到有效的替代方案,也许您应该考虑 "drawable-theme" 文件夹是否是解决问题的正确方法