Skip to content

Instantly share code, notes, and snippets.

View mtsahakis's full-sized avatar

Manos Tsahakis mtsahakis

  • Bishops Stortford, United Kingdom
View GitHub Profile
@mtsahakis
mtsahakis / ScrollingFragment.java
Created February 21, 2016 21:44
Check if an Android Recycler View is scrolled all the way down. Implementation is taken from a Fragment.
private RecyclerView mRecyclerView;
@Nullable
@Override
public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
View view = inflater.inflate(R.layout.fragment_view, container, false);
mRecyclerView = (RecyclerView) view.findViewById(R.id.recycler_view);
// ommiting other recycler view set up, such as adapter and Layout manager set up ..
mRecyclerView.addOnScrollListener(new RecyclerView.OnScrollListener() {
@Override