Skip to content

Instantly share code, notes, and snippets.

🎯
Focusing

weiyang.su suweya

🎯
Focusing
Block or report user

Report or block suweya

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@suweya
suweya / SlideView.java
Created Jul 14, 2017
Lock screen slide view
View SlideView.java
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.animation.ObjectAnimator;
import android.animation.ValueAnimator;
import android.annotation.TargetApi;
import android.content.Context;
import android.os.Build;
import android.support.annotation.Nullable;
import android.support.v4.view.MotionEventCompat;
import android.util.AttributeSet;
@suweya
suweya / MoveViewTouchListener.java
Created Jul 14, 2017 — forked from slightfoot/MoveViewTouchListener.java
Move View Touch Listener Example
View MoveViewTouchListener.java
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
/**
* @author Simon Lightfoot <simon@demondevelopers.com>
*/
public class MoveViewTouchListener
implements View.OnTouchListener
{
@suweya
suweya / FileUtil.java
Last active Sep 24, 2019
OkHttp download file by Okio
View FileUtil.java
import android.os.Environment;
import android.support.annotation.NonNull;
import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.concurrent.TimeUnit;
@suweya
suweya / OkHttpStack.java
Last active Aug 29, 2015 — forked from bryanstern/OkHttpStack.java
An OkHttp backed HttpStack for Volley
View OkHttpStack.java
/**
* The MIT License (MIT)
*
* Copyright (c) 2015 Circle Internet Financial
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
You can’t perform that action at this time.