Skip to content

Instantly share code, notes, and snippets.

Avatar

Harshit Agarwal harsu-ag

View GitHub Profile
@harsu-ag
harsu-ag / FacebookLoginManager.java
Last active Jul 5, 2016
A class to implement Facebook Login just in few functions.
View FacebookLoginManager.java
/**
* Created by harsu on 22-06-2016.
* <p>
* This class reduces the BoilerPlate code for Implementing Facebook Login by providing an easy to access class and functions.
* <p>
* 1. Create an instance of the class in your Sign in activity.
* 2. Set a View whose onClick would Invoke Facebook Sign In Procedure along with the request params using {@link #setLoginView(View, Activity, Collection)}
* or {@link #setLoginView(View, Fragment, Collection)}
* 3. call the {@link #onActivityResult(int, int, Intent)} in your sign In activity's onActivityResult().
* 4. store the data by implementing your logic in {@link #storeData(Map)}
@harsu-ag
harsu-ag / DividerItemDecoration.java
Last active Jun 9, 2016 — forked from alexfu/DividerItemDecoration.java
An ItemDecoration that draws dividers between items. Pulled from Android support demos.
View DividerItemDecoration.java
/*
* Copyright (C) 2014 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software