@Override public void setAdapter(ListAdapter adapter) { // Add the Footer View at the last possible moment if (null != mLvFooterLoadingFrame && !mAddedLvFooter) { addFooterView(mLvFooterLoadingFrame, null, false); mAddedLvFooter = true; } super.setAdapter(adapter); }
@Override protected void dispatchDraw(Canvas canvas) { /** * This is a bit hacky, but Samsung's ListView has got a bug in it when using Header/Footer * Views and the list is empty. This masks the issue so that it doesn't cause an FC. See Issue * #66. */ try { super.dispatchDraw(canvas); } catch (IndexOutOfBoundsException e) { e.printStackTrace(); } }
@Override public void setEmptyViewInternal(View emptyView) { super.setEmptyView(emptyView); }