Best code examples for Android ListView.FixedViewInfo class (android.widget.ListView.FixedViewInfo)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android ListView.FixedViewInfo class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android ListView.FixedViewInfo examples from Open Source projects
This code example shows how to use the following methods:
     * @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 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods:
     * @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 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods:
     * @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 
Full Snippet Info
5
CodeRank
This code example shows how to use the following methods:
     * @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 
Full Snippet Info
4
CodeRank
This code example shows how to use the following methods:
			mHeader.setLayoutParams(new AbsListView.LayoutParams(
					LayoutParams.MATCH_PARENT, HEADER_HEIGHT));
			mHeader.setBackgroundColor(Color.CYAN);
 
			mHeaderViewInfo = new ArrayList<ListView.FixedViewInfo>();
			FixedViewInfo info = new FixedViewInfo();
			info.data = null;
			info.view = mHeader;
			info.isSelectable = false;
			mHeaderViewInfo.add(info);
 
			super.setOnScrollListener(this);
		} 
 
		@Override 
		public boolean onTouchEvent(MotionEvent ev) {
			final int action = ev.getAction() & MotionEvent.ACTION_MASK;
 
			switch (action) {
			case MotionEvent.ACTION_DOWN:
Full Snippet Info
3
CodeRank
See Code Examples for Android ListView.FixedViewInfo Methods: