com.jcodecraeer.xrecyclerview.XRecyclerView.addHeaderView()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(4.7k)|赞(0)|评价(0)|浏览(113)

本文整理了Java中com.jcodecraeer.xrecyclerview.XRecyclerView.addHeaderView()方法的一些代码示例,展示了XRecyclerView.addHeaderView()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XRecyclerView.addHeaderView()方法的具体详情如下:
包路径:com.jcodecraeer.xrecyclerview.XRecyclerView
类名称:XRecyclerView
方法名:addHeaderView

XRecyclerView.addHeaderView介绍

暂无

代码示例

代码示例来源:origin: wutongke/AndroidSkinAnimator

private void initRecyclerView() {
  mDataBinding.recyclerView.setPullRefreshEnabled(false);
  mDataBinding.recyclerView.setLoadingMoreEnabled(true);
  mDataBinding.recyclerView.addHeaderView(mHeaderBinding.getRoot());
  mDataBinding.recyclerView.setLayoutManager(new GridLayoutManager(this, 3));
  mDataBinding.recyclerView.setNestedScrollingEnabled(false);
  mDataBinding.recyclerView.setHasFixedSize(false);
  mDataBinding.recyclerView.setItemAnimator(new DefaultItemAnimator());
  mAdapter = new SkinLibAdapter();
  mDataBinding.recyclerView.setAdapter(mAdapter);
}

代码示例来源:origin: ximsfei/Skin-Demo

private void initRecyclerView() {
  mDataBinding.recyclerView.setPullRefreshEnabled(false);
  mDataBinding.recyclerView.setLoadingMoreEnabled(true);
  mDataBinding.recyclerView.addHeaderView(mHeaderBinding.getRoot());
  mDataBinding.recyclerView.setLayoutManager(new GridLayoutManager(this, 3));
  mDataBinding.recyclerView.setNestedScrollingEnabled(false);
  mDataBinding.recyclerView.setHasFixedSize(false);
  mDataBinding.recyclerView.setItemAnimator(new DefaultItemAnimator());
  mAdapter = new SkinLibAdapter();
  mDataBinding.recyclerView.setAdapter(mAdapter);
}

代码示例来源:origin: wutongke/AndroidSkinAnimator

private void initRecyclerView() {
  mDataBinding.recyclerView.setPullRefreshEnabled(false);
  mDataBinding.recyclerView.setLoadingMoreEnabled(true);
  mDataBinding.recyclerView.addHeaderView(mHeaderBinding.getRoot());
  mDataBinding.recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
  mDataBinding.recyclerView.setNestedScrollingEnabled(false);
  mDataBinding.recyclerView.setHasFixedSize(false);
  mDataBinding.recyclerView.setItemAnimator(new DefaultItemAnimator());
  mAdapter = new SongMenuAdapter(getActivity());
  mDataBinding.recyclerView.setAdapter(mAdapter);
}

代码示例来源:origin: ximsfei/Skin-Demo

private void initRecyclerView() {
  mDataBinding.recyclerView.setPullRefreshEnabled(false);
  mDataBinding.recyclerView.setLoadingMoreEnabled(true);
  mDataBinding.recyclerView.addHeaderView(mHeaderBinding.getRoot());
  mDataBinding.recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
  mDataBinding.recyclerView.setNestedScrollingEnabled(false);
  mDataBinding.recyclerView.setHasFixedSize(false);
  mDataBinding.recyclerView.setItemAnimator(new DefaultItemAnimator());
  mAdapter = new SongMenuAdapter(getActivity());
  mDataBinding.recyclerView.setAdapter(mAdapter);
}

代码示例来源:origin: wutongke/AndroidSkinAnimator

private void initRecyclerView() {
  mDataBinding.recyclerView.setPullRefreshEnabled(false);
  mDataBinding.recyclerView.setLoadingMoreEnabled(true);
  mDataBinding.recyclerView.addHeaderView(mHeaderBinding.getRoot());
  mFooterBinding = DataBindingUtil.inflate(LayoutInflater.from(getContext()), R.layout.footer_recommend_item, null, false);
  mDataBinding.recyclerView.setFootView(mFooterBinding.getRoot());
  mDataBinding.recyclerView.setNoMore(true);
  mFooterBinding.getRoot().setVisibility(View.VISIBLE);
  mDataBinding.recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
  mDataBinding.recyclerView.setNestedScrollingEnabled(false);
  mDataBinding.recyclerView.setHasFixedSize(false);
  mDataBinding.recyclerView.setItemAnimator(new DefaultItemAnimator());
  mAdapter = new RecommendAdapter(getActivity());
  mDataBinding.recyclerView.setAdapter(mAdapter);
}

代码示例来源:origin: Null-Ouwenjie/zhizhihu

mFollowerChart = ButterKnife.findById(headerView, R.id.follower_chart);
mMyTrendsListView.addHeaderView(headerView);

代码示例来源:origin: ximsfei/Skin-Demo

private void initRecyclerView() {
  mDataBinding.recyclerView.setPullRefreshEnabled(false);
  mDataBinding.recyclerView.setLoadingMoreEnabled(true);
  mDataBinding.recyclerView.addHeaderView(mHeaderBinding.getRoot());
  mFooterBinding = DataBindingUtil.inflate(LayoutInflater.from(getContext()), R.layout.footer_recommend_item, null, false);
  mDataBinding.recyclerView.setFootView(mFooterBinding.getRoot());
  mDataBinding.recyclerView.setNoMore(true);
  mFooterBinding.getRoot().setVisibility(View.VISIBLE);
  mDataBinding.recyclerView.setLayoutManager(new LinearLayoutManager(getContext()));
  mDataBinding.recyclerView.setNestedScrollingEnabled(false);
  mDataBinding.recyclerView.setHasFixedSize(false);
  mDataBinding.recyclerView.setItemAnimator(new DefaultItemAnimator());
  mAdapter = new RecommendAdapter(getActivity());
  mDataBinding.recyclerView.setAdapter(mAdapter);
}

代码示例来源:origin: Null-Ouwenjie/zhizhihu

mPostCountTxt.setText(detail.getDetail().getPost());
mTopAnswerListView.addHeaderView(headerView);

相关文章