取代来自web服务的Andr​​oid数据图像 [英] replace images in data from webservice android

查看:97
本文介绍了取代来自web服务的Andr​​oid数据图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

  How can i replace the text or symbol from web service with local images in drawable folder.

我从网络服务的标志和文字。我需要更换我的形象符号保存在本地绘制文件夹中的应用程序。

I get a symbol and text from web service. I need to replace that symbol with my image that is saved in local drawable folder in the application.

请建议我怎么能做到这一点的一些想法。

Please suggest few ideas of how can i do that.

在此先感谢。

推荐答案

您不能改变或添加任何可绘制在你的绘制文件夹。这些资源被编译成一个 .apk文件文件,有没有办法在运行时改变它们。唯一的解决办法我看到的是存储下载的图像在SD卡上,并提取它们,当你需要它。希望这有助于。

You cannot change or add any drawables inside your drawable folder. These resources are compiled into an .apk file, and there is no way to change them at runtime. Only solution I see is to store downloaded images on SD card and fetch them when you need it. Hope this helps.

这篇关于取代来自web服务的Andr​​oid数据图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆