Skip to content
New issue

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

after setHeader(view) the header did not appear #231

Closed
ForgetV opened this issue Nov 11, 2015 · 1 comment
Closed

after setHeader(view) the header did not appear #231

ForgetV opened this issue Nov 11, 2015 · 1 comment
Labels

Comments

@ForgetV
Copy link

ForgetV commented Nov 11, 2015

questionLv = (UltimateRecyclerView) viewRoot.findViewById(R.id.rv);
questionLv.setOnLoadMoreListener(new UltimateRecyclerView.OnLoadMoreListener() {
@OverRide
public void loadMore(int itemsCount, int maxLastVisiblePosition) {
}
});
questionLv.setDefaultOnRefreshListener(new SwipeRefreshLayout.OnRefreshListener() {
@OverRide
public void onRefresh() {
}
});
questionLv.setLayoutManager(new LinearLayoutManager(mActivity));
questionLv.enableLoadmore();
LayoutInflater inflater = LayoutInflater.from(mActivity);
View convertView = inflater.inflate(R.layout.header, null);
questionLv.setNormalHeader(convertView);

@GuyAvraham
Copy link

+1
same problem. Im in a fragment:
ultimateRecyclerView.setParallaxHeader(inflater.inflate(R.layout.parallax_recyclerview_header, ultimateRecyclerView.mRecyclerView, false));

but the header is not shown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants