开发者

replace images in data from webservice android

开发者 https://www.devze.com 2023-04-09 04:01 出处:网络
Hi all, 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 repla开发者_如何转开发ce that symbol with my

Hi all,

  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 repla开发者_如何转开发ce 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.

Thanks in advance.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消