开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜