Code example for ListAdapter

Methods: hasStableIds

0
        return false; 
    } 
 
    @Override 
    public boolean hasStableIds() { 
        return mBaseAdapter.hasStableIds();
    } 
 
    @Override 
    public boolean isEmpty() { 
        return mBaseAdapter.isEmpty();
    } 
 
    @Override 
    public View getView(int position, View convertView, ViewGroup parent) {
        if (isSectionHeaderPosition(position)) {
            TextView view = (TextView) convertView;
            if (view == null) {
                view = (TextView) mLayoutInflater.inflate(mSectionResourceId, parent, false);
            } 
            view.setText(mSections.get(position).title);