Code example for EdgeEffectCompat

0
	@Override 
	public void setOverScrollMode(int mode) {
		if (mode != OVER_SCROLL_NEVER) {
			if (mEdgeGlowTop == null) {
				Context context = getContext();
				mEdgeGlowTop = new EdgeEffectCompat(context);
				mEdgeGlowBottom = new EdgeEffectCompat(context);
				mEdgeGlowLeft = new EdgeEffectCompat(context);
				mEdgeGlowRight = new EdgeEffectCompat(context);
			} 
		} else { 
			mEdgeGlowTop = null;
			mEdgeGlowBottom = null;
			mEdgeGlowLeft = null;
			mEdgeGlowRight = null;
		} 
		super.setOverScrollMode(mode);
	} 
 
	@Override 
	public boolean onTouchEvent(MotionEvent event) {