Last active
December 28, 2016 05:22
-
-
Save J1aDong/9a2c71e565ab6452c2facfbe23733d69 to your computer and use it in GitHub Desktop.
禁止recyclerView滑动
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LinearLayoutManager linearLayoutManager = new LinearLayoutManager(context) { | |
@Override | |
public boolean canScrollVertically() { | |
return false; | |
} | |
}; | |
recyclerview.setLayoutManager(linearLayoutManager); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment