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.
加载中,请稍侯......
精彩评论