XML : Show image string-resource (xml) android

How can I show an image in a string-array, in xml-format in android?

       <string-array name = "cities_info">       <item>          <![CDATA[<i><b>Image1:</b> Map of Africa.             Cape Town (Afrikaans: Kaapstad [ˈkɑːpstɐt]; Xhosa: Ikapa) is a            city in South Africa. It ranks third among the most populous urban areas in South Africa, after Johannesburg and Durban, and has roughly the            same population as the Durban Metropolitan Area. It is also             the provincial capital and primate city of the Western Cape          ]]>      </item>    

I have tried with html-code but it doesnt work

  <img src="capetown.jpg" alt="city" style="width:300px;height:300px;">    

or

   <img src="@drawable/capetown.jpg" alt="city" style="width:300px height:300px;">    

No comments:

Post a Comment