开发者

replace text with image, Data from .net web service android [duplicate]

开发者 https://www.devze.com 2023-04-08 01:11 出处:网络
This question already has an answer here: Closed 11 years ago. Possible Duplicate: replace images in data from webservice android
This question already has an answer here: Closed 11 years ago.

Possible Duplicate:

replace images in data from webservice android

can any one tell me how to display a image instead of a text. Text coming from web service.

E开发者_如何学JAVAg: I send "hi android". I need to replace text "android" with "icon.png" image.

How can i achieve this. Please help me in solving this issue.

Thanks.


Put an ImageView in your layout, set it's visibility as gone by default. When ever you are ready with your image, make the textView visibility gone and put the ImageView visibility to visible . Don't forget to set the ImageView resource before making it visible.

HTH.

0

精彩评论

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

关注公众号