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

loadmore view don't show #479

Open
lhholylight opened this issue Jan 3, 2018 · 0 comments
Open

loadmore view don't show #479

lhholylight opened this issue Jan 3, 2018 · 0 comments

Comments

@lhholylight
Copy link

recyclerView = binding.recyclerView;
recyclerView.setHasFixedSize(false);
recyclerView.setLayoutManager(new LinearLayoutManager(this));
recyclerAdapter = new RecyclerAdapter(this);
ItemTouchHelper.Callback callback = new SimpleItemTouchHelperCallback(recyclerAdapter);
mItemTouchHelper = new ItemTouchHelper(callback);
mItemTouchHelper.attachToRecyclerView(recyclerView.mRecyclerView);
recyclerAdapter.setOnDragStartListener(new FavHistNewActivity.RecyclerAdapter.OnStartDragListener() {
@OverRide
public void onStartDrag(RecyclerView.ViewHolder viewHolder) {
mItemTouchHelper.startDrag(viewHolder);
}
});
recyclerView.setAdapter(recyclerAdapter);
recyclerView.setLoadMoreView(R.layout.ui_empty_layout);
DividerItemDecoration dividerItemDecoration = new DividerItemDecoration(binding.recyclerView.getContext(),
LinearLayoutManager.VERTICAL);
binding.recyclerView.addItemDecoration(dividerItemDecoration);

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

No branches or pull requests

1 participant