Code example for ListAdapter

Methods: isEmpty

0
        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);
            return view;
 
        } else { 
            return mBaseAdapter.getView(sectionedPositionToPosition(position), convertView, parent);
        }