How to format list items with HTML in a Master Detail Flow Activity
I have a Master Detail Flow activity, and in that activity there is a
string array. I would like to format my item name string "content" in my
list with HTML. However, I am not sure where to declare an HTML method to
make this work, but I do know that the strings are called in a public
string toString method in the Content.java file
public String toString() {
return (content);
}
or maybe I could get the list adapter to implement the formatting which is
in my ListFragment.java file
setListAdapter(new ArrayAdapter<ExerciseContent.Exercise>(getActivity(),
android.R.layout.simple_list_item_activated_1,
android.R.id.text1, ExerciseContent.ITEMS));
No comments:
Post a Comment