Skip to content

Instantly share code, notes, and snippets.

View mzelzoghbi's full-sized avatar

Mohamed Zakaria El-Zoghbi mzelzoghbi

View GitHub Profile
@mzelzoghbi
mzelzoghbi / AbstractRecyclerViewFooterAdapter.java
Created February 6, 2017 12:33 — forked from mSobhy90/AbstractRecyclerViewFooterAdapter.java
An example of how-to implement an infinite scrolling adapter for a RecyclerView, with a ProgressBar footer. Blog post can be found here: http://msobhy.me/2015/09/05/infinite_scrolling_recyclerview/
package net.sarmady.contactcarswithtabs.adapters;
import android.support.annotation.NonNull;
import android.support.v7.widget.LinearLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ProgressBar;
@mzelzoghbi
mzelzoghbi / InteractiveScrollView.java
Created May 15, 2017 11:10 — forked from marteinn/InteractiveScrollView.java
ScrollView with a OnBottomReachedListener for Android
package se.marteinn.ui;
import android.content.Context;
import android.util.AttributeSet;
import android.view.View;
import android.widget.ScrollView;
/**
* Triggers a event when scrolling reaches bottom.