Skip to content

Instantly share code, notes, and snippets.

View mehrdadf7's full-sized avatar
🏠
Working from home

mehrdadf7 mehrdadf7

🏠
Working from home
View GitHub Profile
@informramiz
informramiz / maven-publish.gradle
Created April 26, 2020 15:38
Gradle file to publish library to maven repo using maven publish gradle plugin.
/**
* create following variables in your project level build.gradle file's extended block
* ext {
* lib_repo_username = "repo user name"
* lib_repo_password = "repo password"
* lib_repo_url = "lib repo url"
* lib_group_id = "group id"
* lib_artifact_id = "artifact id"
* lib_version_name = "version name"
* }
@erseno
erseno / PagedRecyclerViewAdapter.java
Last active April 21, 2020 07:55
A base adapter for RecyclerView to handle the loading of more data once a scroll threshold has been reached. Also shows a progress bar as a footer view to show that the next page is loading. If the next page fails to load, a retry button is displayed along with an error message so that the page can be retried.
import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import java.util.ArrayList;
/**