I am trying to set an image stored in assets folder in strings.xml and set that string to a TextView. Is this possible?
Strings.xml has the following string:
<string name="nofriends">No Friends.. <![CDATA[<br><br><br><br> <img src=\"file:///android_asset/sad.png\"/>]]></string>
And in my java file I am setting something like this"
Spanned text = Html.fromHtml(res.getString(R.string.nofriends));
noFriends.setText(text);
I am getting the text with a small green box but not the actual image?
Can anybody help me fix this?