@Override protected void dispatchDraw(Canvas canvas) { // Only draw the list here. // The header should be drawn right after the lists children are drawn. // This is done so that the header is above the list items // but below the list decorators (scroll bars etc). if (mList.getVisibility() == VISIBLE || mList.getAnimation() != null) { drawChild(canvas, mList, 0); } }