We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
layoutManager = new GridLayoutManager(getContext(), 3); cateCommodityList.setLayoutManager(layoutManager); adapter = new CategoryAdapter(getContext(), categories); // cateCommodityList.setAdapter(adapter); mHeaderAndFooterRecyclerViewAdapter = new HeaderAndFooterRecyclerViewAdapter(adapter); cateCommodityList.setAdapter(mHeaderAndFooterRecyclerViewAdapter); View headerView = LayoutInflater.from(getContext()).inflate(R.layout.layout_cate_header, null); //add a HeaderView RecyclerViewUtils.setHeaderView(cateCommodityList, headerView);
结果 header 并不能出现在顶部,而是一个普通的item..
The text was updated successfully, but these errors were encountered:
支持,你参考:https://github.com/cundong/HeaderAndFooterRecyclerView/blob/master/sample/src/main/java/com/cundong/recyclerview/sample/EndlessGridLayoutActivity.java
Sorry, something went wrong.
get it ! thank you
No branches or pull requests
结果 header 并不能出现在顶部,而是一个普通的item..
The text was updated successfully, but these errors were encountered: