android - 覆盖库中的可绘制对象

标签 android drawable

我有一个标准应用程序。 我需要为每个客户更改一些文本、设置和图形。 通过这种方式,每个客户都可以获得为他们的品牌定制的应用程序。

我想通过将标准应用程序变成一个库来做到这一点。 我现在可以覆盖 string.xml 中的文本

但是当我想改变(例如)splashscreen.png 时,我得到了这个错误:

错误:找不到与给定名称匹配的资源(在 'drawable' 处,值为 '@drawable/splashscreen.png')

我做错了什么?还是有更好的方法来解决这个问题?

提前致谢。

最佳答案

好的,我发现了问题。 我在目录“可绘制”中有我的默认可绘制对象。 当我将目录名称更改为“drawable-ldpi”时,一切正常。

关于android - 覆盖库中的可绘制对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/8800470/

相关文章:

Android textview drawable顶部对齐

android - 如何在 Eclipse API 16 (fontFamily) 中使用 native Android OS 4.1 Roboto 字体

android - Qt Android 手势问题

android - 创建项目后首次构建时出错 : XML document structures must start and end within the same entity

android - 如何知道 Intent ACTION_TIME_CHANGED 是否来自直接用户交互

java - Android Studio : how to add and use project as library, 不是模块

java - 如何以编程方式更改图像的不透明度并将其保存在图库中

android - 如何从 Drawable 获取 URI

Android数据绑定(bind),如何在drawable中绑定(bind)数据?

android - 获取 MediaPlayer 的状态