How put <Spanned> into list.setAdapter?
Posted
by
svebee
on Stack Overflow
See other posts from Stack Overflow
or by svebee
Published on 2011-01-02T21:39:16Z
Indexed on
2011/01/02
21:53 UTC
Read the original article
Hit count: 154
Simple but little tricky, if I have
list.setAdapter(new ArrayAdapter<String>(this,R.layout.double_row, R.id.doubleRow, articleItemsHelper));
it works if articleItemsHelper is String, but I wanna have HTML formatting in there so when articleItemsHelper is type Spanned this (adapter) doesn't work.
ArrayList<Spanned> articleItemsHelper = new ArrayList<Spanned>();
What's the solution?
© Stack Overflow or respective owner