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
Scroll up force SwipeRefreshLayout to refresh, however, scroll down works properlly
The text was updated successfully, but these errors were encountered:
how I went about this was to add my SwipeRefreshLayout in HeaderListView manually and then add the internal ListView to mySwipeRefreshLayout
SwipeRefreshLayout
HeaderListView
... mListView.setOnItemClickListener((parent, view, position, id) -> { if (mAdapter != null) { mAdapter.onItemClick(parent, view, position, id); } }); mSwipeRefreshLayout = new SwipeRefreshLayout(getContext()); LayoutParams swipeParams = new LayoutParams(LayoutParams.MATCH_PARENT, LayoutParams.MATCH_PARENT); swipeParams.addRule(ALIGN_PARENT_TOP); mSwipeRefreshLayout.setLayoutParams(listParams); mSwipeRefreshLayout.addView(mListView); addView(mSwipeRefreshLayout); mHeader = new RelativeLayout(getContext()); ...
Sorry, something went wrong.
@nmvictor 's solution worked for me but for clarity it was necessary to remove the internal ListView from its parent.
ListView interalListView = headerListView.getListView(); headerListView.removeView(internalListView); swipeRefreshLayout.addView(internalListView);
No branches or pull requests
Scroll up force SwipeRefreshLayout to refresh, however, scroll down works properlly
The text was updated successfully, but these errors were encountered: