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.internal;
 
 
 
 public class RotateLoadingLayout extends LoadingLayout {
 
 	static final int ROTATION_ANIMATION_DURATION = 1200;
 
 	private final Animation mRotateAnimation;
 	private final Matrix mHeaderImageMatrix;
 
 	private float mRotationPivotXmRotationPivotY;
 
 	private final boolean mRotateDrawableWhilePulling;
 
 	public RotateLoadingLayout(Context contextMode modeOrientation scrollDirectionTypedArray attrs) {
 		super(contextmodescrollDirectionattrs);
 
 
 
 				0.5f);
 	}
 
 	public void onLoadingDrawableSet(Drawable imageDrawable) {
 		if (null != imageDrawable) {
 			 = Math.round(imageDrawable.getIntrinsicWidth() / 2f);
 			 = Math.round(imageDrawable.getIntrinsicHeight() / 2f);
 		}
 	}
 
 	protected void onPullImpl(float scaleOfLayout) {
 		float angle;
 			angle = scaleOfLayout * 90f;
 		} else {
 			angle = Math.max(0f, Math.min(180f, scaleOfLayout * 360f - 180f));
 		}
 
 	}
 
 	protected void refreshingImpl() {
 	}
 
 	protected void resetImpl() {
 	}
 
 	private void resetImageRotation() {
 		if (null != ) {
 		}
 	}
 
 	protected void pullToRefreshImpl() {
 		// NO-OP
 	}
	protected void releaseToRefreshImpl() {
		// NO-OP
	}
	protected int getDefaultDrawableResId() {
	}
New to GrepCode? Check out our FAQ X