Code example for ListView.FixedViewInfo

0
     * @param isSelectable 
     * @return this adapter 
     */ 
    public HeaderFooterListAdapter<E> addHeader(View view, Object data,
            boolean isSelectable) {
        FixedViewInfo info = list.new FixedViewInfo();
        info.view = view;
        info.data = data;
        info.isSelectable = isSelectable;
 
        headers.add(info);
        wrapped.notifyDataSetChanged();
        return this;
    } 
 
    /** 
     * Add non-selectable footer view with no data 
     * 
     * @see #addFooter(View, Object, boolean) 
     * @param view 
     * @return this adapter