// Path: app/src/main/java/com/ce/game/screenlocker/inter/RippleAnimationListener.java
// public interface RippleAnimationListener {
// 
//     /**
//      * Allow to listen to the end of the ripple animation
//      */
//     void onRippleAnimationEnd();
// }


import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ListView;
import android.widget.RelativeLayout;
import com.ce.game.screenlocker.R;
import com.ce.game.screenlocker.inter.RippleAnimationListener;
package com.ce.game.screenlocker.view;




/**
 * Created by KyleCe on 2016/5/25.
 *
 * @author: KyleCe
 */

public class RippleView extends RelativeLayout {
    private static final String TAG = RippleView.class.getSimpleName();
    private int WIDTH;
    private int HEIGHT;
    private int FRAME_RATE = 10;
    private int DURATION = 400;
    private int PAINT_ALPHA = 90;
    private Handler canvasHandler;
    private float radiusMax = 0;
    private boolean animationRunning = false;
    private int timer = 0;
    private float x = -1;
    private float y = -1;
    private Boolean isCentered;
    private Integer rippleType;
    private Paint paint;
    private Bitmap originBitmap;
    private int rippleColor;
    private int ripplePadding;
    private GestureDetector gestureDetector;
// Path: app/src/main/java/com/ce/game/screenlocker/inter/RippleAnimationListener.java
// public interface RippleAnimationListener {
// 
//     /**
//      * Allow to listen to the end of the ripple animation
//      */
//     void onRippleAnimationEnd();
// }


// Path: app/src/main/java/com/ce/game/screenlocker/view/RippleView.java
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.Paint;
import android.os.Handler;
import android.util.AttributeSet;
import android.view.GestureDetector;
import android.view.MotionEvent;
import android.view.View;
import android.widget.ListView;
import android.widget.RelativeLayout;
import com.ce.game.screenlocker.R;
import com.ce.game.screenlocker.inter.RippleAnimationListener;

package com.ce.game.screenlocker.view;




/**
 * Created by KyleCe on 2016/5/25.
 *
 * @author: KyleCe
 */

public class RippleView extends RelativeLayout {
    private static final String TAG = RippleView.class.getSimpleName();
    private int WIDTH;
    private int HEIGHT;
    private int FRAME_RATE = 10;
    private int DURATION = 400;
    private int PAINT_ALPHA = 90;
    private Handler canvasHandler;
    private float radiusMax = 0;
    private boolean animationRunning = false;
    private int timer = 0;
    private float x = -1;
    private float y = -1;
    private Boolean isCentered;
    private Integer rippleType;
    private Paint paint;
    private Bitmap originBitmap;
    private int rippleColor;
    private int ripplePadding;
    private GestureDetector gestureDetector;
    private RippleAnimationListener mAnimationListener;