Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2011, 2012 Chris Banes. Copyright 2013 Naver Business Platform Corp. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. /
 
 package com.handmark.pulltorefresh.library;
 
 
 
 
 	public PullToRefreshGridView(Context context) {
 		super(context);
 	}
 
 	public PullToRefreshGridView(Context contextAttributeSet attrs) {
 		super(contextattrs);
 	}
 
 	public PullToRefreshGridView(Context contextMode mode) {
 		super(contextmode);
 	}
 
 	public PullToRefreshGridView(Context contextMode modeClass<? extends LoadingLayoutloadingLayoutClazz) {
 		super(contextmodeloadingLayoutClazz);
 	}
 
 	}
 
 	protected final GridView createRefreshableView(Context contextAttributeSet attrs) {
 		final GridView gv;
 			gv = new InternalGridViewSDK9(contextattrs);
 		} else {
 			gv = new InternalGridView(contextattrs);
 		}
 
 		// Use Generated ID (from res/values/ids.xml)
 		return gv;
 	}
 
 	class InternalGridView extends GridView implements EmptyViewMethodAccessor {
 
 		public InternalGridView(Context contextAttributeSet attrs) {
 			super(contextattrs);
 		}
 
 		public void setEmptyView(View emptyView) {
 		}
 
 		public void setEmptyViewInternal(View emptyView) {
 			super.setEmptyView(emptyView);
 		}
 	}
 
 	final class InternalGridViewSDK9 extends InternalGridView {
 
 		public InternalGridViewSDK9(Context contextAttributeSet attrs) {
 			super(contextattrs);
 		}
 
 		protected boolean overScrollBy(int deltaXint deltaYint scrollXint scrollYint scrollRangeX,
 				int scrollRangeYint maxOverScrollXint maxOverScrollYboolean isTouchEvent) {
 
 			final boolean returnValue = super.overScrollBy(deltaXdeltaYscrollXscrollYscrollRangeX,
 					scrollRangeYmaxOverScrollXmaxOverScrollYisTouchEvent);
 
 			// Does all of the hard work...
 			OverscrollHelper.overScrollBy(PullToRefreshGridView.thisdeltaXscrollXdeltaYscrollYisTouchEvent);
			return returnValue;
		}
	}