Skip to content

Instantly share code, notes, and snippets.

@AlexNab
AlexNab / .gitignore
Created August 19, 2013 10:25
Good set of git ignore options for Android projects.
## Adopted from https://github.com/github/gitignore/blob/master/Android.gitignore
# Built application files
*.apk
*.ap_
# Files for the Dalvik VM
*.dex
# Java class files
@AlexNab
AlexNab / UninterceptableViewPager.java
Last active October 7, 2015 04:18
UninterceptableViewPager
import android.content.Context;
import android.support.v4.view.ViewPager;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.GestureDetector.SimpleOnGestureListener;
import android.view.MotionEvent;
/**
* Custom {@link ViewPager} implementation that will handle horizontal scroll events by himself. Default ViewPager
* becomes hardly usable when it's nested into ScrollView based containers (such as ScrollView, ListView, etc.). It is