From a192064c27002bc7d2ab1cb6b1b7a9460070b33c Mon Sep 17 00:00:00 2001 From: Ricky Barrette Date: Sat, 2 Jun 2012 15:39:21 -0400 Subject: [PATCH] delted ScrollView, as it is no longer needed Signed-off-by: Ricky Barrette --- .../android/LocationRinger/ui/ScrollView.java | 68 ------------------- 1 file changed, 68 deletions(-) delete mode 100644 LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/ScrollView.java diff --git a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/ScrollView.java b/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/ScrollView.java deleted file mode 100644 index f02629d..0000000 --- a/LocationRinger/src/com/TwentyCodes/android/LocationRinger/ui/ScrollView.java +++ /dev/null @@ -1,68 +0,0 @@ -/** - * ScrollView.java - * @date May 3, 2011 - * @author Twenty Codes, LLC - * @author ricky barrette - */ -package com.TwentyCodes.android.LocationRinger.ui; - -import android.content.Context; -import android.util.AttributeSet; -import android.view.MotionEvent; - -/** - * This is a simple scroll view that i have made to enable and disable scrolling - * @author ricky barrette - */ -public class ScrollView extends android.widget.ScrollView { - - private boolean isEnabled = true; - - /** - * @param context - * @param apiKey - * @author ricky barrette - */ - public ScrollView(Context context) { - super(context); - } - - /** - * @param context - * @param attrs - * @author ricky barrette - */ - public ScrollView(Context context, AttributeSet attrs) { - super(context, attrs); - } - - /** - * @param context - * @param attrs - * @param defStyle - * @author ricky barrette - */ - public ScrollView(Context context, AttributeSet attrs, int defStyle) { - super(context, attrs, defStyle); - } - - /** - * Enables or disabled the scrollview's ability to scroll - * @param enabled - * @author ricky barrette - */ - public void setScrollEnabled(boolean enabled){ - isEnabled = enabled; - } - - @Override - public boolean onInterceptTouchEvent(MotionEvent ev) { - return isEnabled ? super.onInterceptTouchEvent(ev) : false; - } - - @Override - public boolean onTouchEvent(MotionEvent ev) { - return isEnabled ? super.onTouchEvent(ev) : false; - } - -} \ No newline at end of file