With my ListView in Android Application made in Eclipse:
ArrayList<String> planetList = new ArrayList<String>();
planetList.addAll(Arrays.asList(xRemote));
listAdapter = new ArrayAdapter<String>(this, R.layout.simplerow,
R.id.rowTextView, planetList);
listAdapter.addAll(xRemote);
mainListView.setAdapter(listAdapter);
Get this output:
https://www.LinkFromImageonTheGoogle.net/myImage.png
23/03/2014
<a href=http://www.mywebpage.net?ID=764>My remote pics</a>
https://www.LinkFromImageonTheGoogle.net/myImage1.png
22/03/2014
<a href=http://www.mywebpage.net?ID=765>My remote pics 1</a>
https://www.LinkFromImageonTheGoogle.net/myImage2.png
21/03/2014
<a href=http://www.mywebpage.net?ID=766>My remote pics 2</a>
How can I format this output in html?
Html.fromHtml()developer.android.com/reference/android/text/…listAdapter.addAll(Html.fromHtml(xRemote.toString()));The method addAll(Collection<? extends String>) in the type ArrayAdapter<String> is not applicable for the arguments (Spanned)