Created
October 6, 2015 15:00
-
-
Save amyu/103af9b79d706b438c7c to your computer and use it in GitHub Desktop.
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
public class PreLoadLayoutManager extends LinearLayoutManager { | |
private final int mDisplayHeight; | |
public PreLoadLayoutManager(Context context) { | |
super(context); | |
mDisplayHeight = context.getResources().getDisplayMetrics().heightPixels; | |
} | |
@Override | |
protected int getExtraLayoutSpace(RecyclerView.State state) { | |
return mDisplayHeight; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment