Advertisement
Guest User

Untitled

a guest
Jul 26th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. public class CustomLinearLayoutManager extends LinearLayoutManager {
  2.  
  3. public CustomLinearLayoutManager(Context context, int orientation, boolean reverseLayout) {
  4. super(context, orientation, reverseLayout);
  5. }
  6.  
  7. // It will always pass false to RecyclerView when calling "canScrollVertically()" method.
  8. @Override
  9. public boolean canScrollVertically() {
  10. return false;
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement