This file contains hidden or 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
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| public abstract class OnScrollListener extends RecyclerView.OnScrollListener { | |
| private LinearLayoutManager mLayoutManager; | |
| private int mVisibleThreshold = 2; | |
| private int mPreviousItemCount = 0; | |
| private boolean mLoading = true; |
This file contains hidden or 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 SnapTopLinearLayoutManager extends LinearLayoutManager { | |
| public SnapTopLinearLayoutManager(Context context) { | |
| super(context); | |
| } | |
| public SnapTopLinearLayoutManager(Context context, int orientation, boolean reverseLayout) { | |
| super(context, orientation, reverseLayout); | |
| } |