Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我的问题是,我们可以在运行时更改资源中存在的图像吗?
例如。我有一个图像,我需要用另一个具有相同名称的图像替换该图像,以便在代码中我们不会得到资源未找到异常。但是同名的图像会不同吗?
如果有人知道,请回答我的问题。
提前致谢。
我们可以在运行时更改资源中存在的图像吗?
不,除非更新应用程序本身。
res
有只读权限,所以答案是否定的。