I have a custom list adapter:
class ResultsListAdapter extends ArrayAdapter {
in the overridden \'getView\' method I do a
i made this solution, maybe is not the best one, but does the work...
//initialize control string
private String control_input = " ";
then =
@Override
public View getView(int position, View convertView, ViewGroup parent) {
View gridview = convertView;
// change input_array for the array you use
if (!control_input.equals(input_array[position])) {
control_input = input_array[position];
//do your magic
}
return gridview;
}
hope it helps!