I\'ve been stuck on a little bug trying to implement a custom listview in Java for an Android application.
I\'m trying to list a bunch words (typically, 100 < n &
It turned out the data was different than what I was expecting / thought it was. (Mayra, you were essentially correct).
Otherwise the original code would have been functioning correctly.
In the end, the getView(...) class looks like this:
@Override
public View getView(int position, View convertView, ViewGroup parent) {
TextView view = (TextView) super.getView(position, convertView, parent);
final String text = (String) view.getText();
if(mHighlightSet.contains(text))
view.setTextColor(Color.RED);
else
view.setTextColor(Color.WHITE);
return view;
}