private void setEmptyView(@LayoutRes final int emptyResourceId) {
if (mEmptyView == null && emptyResourceId > 0) {
mEmptyId = emptyResourceId;
mEmpty.setLayoutResource(emptyResourceId);
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.JELLY_BEAN) {
mEmpty.setLayoutInflater(inflater);
}
mEmptyView = mEmpty.inflate();
} else {
Log.d(VIEW_LOG_TAG, "unabled to set empty view because the empty has been set");
}
}
UltimateRecyclerView.java 文件源码
java
阅读 32
收藏 0
点赞 0
评论 0
项目:GitHub
作者:
评论列表
文章目录