Skip to content

Instantly share code, notes, and snippets.

View Iapa's full-sized avatar

Ava Niu Iapa

  • 0588 ,Emelia Rest ,Marceleneport ,Idaho ,Fiji
View GitHub Profile
import android.support.v7.widget.RecyclerView;
public class RecyclerViewSwipeListener extends RecyclerView.OnFlingListener {
private static final int SWIPE_THRESHOLD = 100;
private static final int SWIPE_VELOCITY_THRESHOLD = 100;
boolean mIsScrollingVertically;
// change swipe listener depending on whether we are scanning items horizontally or vertically
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN" "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!-- Generated by RHY @will_awoke -->
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="severity" value="warning"/>
@Iapa
Iapa / build.gradle
Created August 25, 2017 08:36 — forked from jackgris/build.gradle
Example of use from Proguard, from Android Studio
buildscript {
repositories {
mavenCentral()
maven {
url 'https://oss.sonatype.org/content/repositories/snapshots/'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
classpath 'com.squareup.gradle:gradle-android-test-plugin:0.9.1-SNAPSHOT'
@Iapa
Iapa / introrx.md
Created March 4, 2019 13:54 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing