android SimpleSectionAdapter from adapter displaying empty list
<p>i really need help debugging this android app i am building. I have a custom adapter. when i dont use it with simpleSectionAdapter it displays list items correctly, but when i use SimpleSectionAdapter from adapter kit, it displays blank list. I want to have sections in my list according to names. Thanks in advance.</p>

<p>Heres's my adapter </p>

<pre><code>public class CustomContriAdapter extends BaseAdapter implements Filterable{

List&lt;Contributions&gt; contributions;
LayoutInflater inflater;
Context context;
public List&lt;Contributions&gt; orig;


public CustomContriAdapter(Context context, List&lt;Contributions&gt; contributions) {
    this.contributions = contributions;
    this.context = context;
    inflater = LayoutInflater.from(this.context);
}

@Override
public int getCount() {
    return contributions.size();
}

@Override
public Object getItem(int position) {
    return contributions.get(position);
}

@Override
public long getItemId(int position) {
    return 0;
}

public Filter getFilter() {
    return new Filter() {

        @Override
        protected FilterResults performFiltering(CharSequence constraint) {
            final FilterResults oReturn = new FilterResults();
            final List&lt;Contributions&gt; results = new ArrayList&lt;Contributions&gt;();
            if (orig == null)
                orig = contributions;
            if (constraint != null) {
                if (orig != null &amp;&amp; orig.size() &gt; 0) {
                    for (final Contributions g : orig) {
                        if (g.getContributor_name().toLowerCase()
                                .contains(constraint.toString()))
                            results.add(g);
                    }
                }
                oReturn.values = results;
            }
            return oReturn;
        }

        @SuppressWarnings("unchecked")
        @Override
        protected void publishResults(CharSequence constraint,
                                      Filter.FilterResults results) {
            contributions = (ArrayList&lt;Contributions&gt;) results.values;
            notifyDataSetChanged();
        }
    };
}

@Override
public View getView(int position, View convertView, ViewGroup parent) {
    MyViewHolder mViewHolder;

    if (convertView == null) {
        convertView = inflater.inflate(R.layout.contri_list_item_layout, parent, false);
        mViewHolder = new MyViewHolder(convertView);
        convertView.setTag(mViewHolder);
    } else {
        mViewHolder = (MyViewHolder) convertView.getTag();
    }

    Contributions currentListData = (Contributions) getItem(position);

    mViewHolder.tvTitleName.setText(currentListData.getContributor_name());

    //date created at
    Date createdAt = currentListData.getCreated();
    DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
    String createdDate = df.format(createdAt);

    mViewHolder.tvDescDate.setText(createdDate);

    return convertView;
}

private class MyViewHolder {
    TextView tvTitleName, tvDescDate;


    public MyViewHolder(View item) {
        tvTitleName = (TextView) item.findViewById(R.id.name_view);
        tvDescDate = (TextView) item.findViewById(R.id.contri_created_date);
    }
}
</code></pre>

<p>}</p>

<p>here's how am calling it in the onCreate()</p>

<pre><code> Collections.sort(allContributions, new Comparator&lt;Contributions&gt;() {
        @Override
        public int compare(Contributions lhs, Contributions rhs) {
            return lhs.getContributor_name().compareTo(rhs.getContributor_name());
        }
    });
    InstantAdapter&lt;Contributions&gt; contribu = new InstantAdapter&lt;Contributions&gt;(
            this,R.layout.contri_list_item_layout, Contributions.class, allContributions);

    //wrap adapter to simple section adapter
    SimpleSectionAdapter&lt;Contributions&gt; sectionAdapter = new SimpleSectionAdapter&lt;Contributions&gt;(
            this, contribu, R.layout.section_header, R.id.section_text , new ContributionsSectionizer());

    listView.setAdapter(sectionAdapter);
</code></pre>

<p>here's the sectionizer,</p>

<pre><code>public class ContributionsSectionizer implements Sectionizer&lt;Contributions&gt; {
@Override
public String getSectionTitleForItem(Contributions contributions) {
    return contributions.getContributor_name();
}
</code></pre>

<p>}</p>

<p>and the items</p>

<pre><code>protected List&lt;Contributions&gt; allContributions = new ArrayList&lt;&gt;();
</code></pre>