Open MrR0990 opened 8 years ago
如果代码执行到这里就会抛出异常,请问是怎么兼容scrollview的 if (null == mLoadMoreHandler) { if (mContentView instanceof GridView) { mLoadMoreHandler = new GridViewHandler(); } else if (mContentView instanceof AbsListView) { mLoadMoreHandler = new ListViewHandler(); } else if (mContentView instanceof RecyclerView) { mLoadMoreHandler = new RecyclerViewHandler(); } } if (null == mLoadMoreHandler) { throw new IllegalStateException("unSupported contentView !"); }
if (null == mLoadMoreHandler) { if (mContentView instanceof GridView) { mLoadMoreHandler = new GridViewHandler(); } else if (mContentView instanceof AbsListView) { mLoadMoreHandler = new ListViewHandler(); } else if (mContentView instanceof RecyclerView) { mLoadMoreHandler = new RecyclerViewHandler(); } } if (null == mLoadMoreHandler) { throw new IllegalStateException("unSupported contentView !"); }
scrollview不支持loadmore目前
如果代码执行到这里就会抛出异常,请问是怎么兼容scrollview的
if (null == mLoadMoreHandler) { if (mContentView instanceof GridView) { mLoadMoreHandler = new GridViewHandler(); } else if (mContentView instanceof AbsListView) { mLoadMoreHandler = new ListViewHandler(); } else if (mContentView instanceof RecyclerView) { mLoadMoreHandler = new RecyclerViewHandler(); } } if (null == mLoadMoreHandler) { throw new IllegalStateException("unSupported contentView !"); }