Best code examples for Android ScaleGestureDetector class (android.view.ScaleGestureDetector)

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Android ScaleGestureDetector class.
You can now enable Codota on your own code to easily search and navigate your Java codebase.

Android ScaleGestureDetector examples from Open Source projects
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
131:	float mScaleFactor = detector.getScaleFactor(); 
-
145:	matrix.postScale(mScaleFactor, mScaleFactor, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
78:	float scale = detector.getScaleFactor(); 
-
97:	float centerX = detector.getFocusX(); 
98:	float centerY = detector.getFocusY(); 
Full Snippet Info
8
CodeRank
This code example shows how to use the following methods: getScaleFactor
147:	mRender.onActionScale(detector.getScaleFactor()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isInProgress, onTouchEvent
75:	mScaleDetector.onTouchEvent(ev); 
-
91:	if (!mScaleDetector.isInProgress()) { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getScaleFactor
165:	mRender.onActionScale(detector.getScaleFactor()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getEventTime, getFocusX, getFocusY, getScaleFactor
73:	mContentViewCore.getContentViewGestureHandler().pinchBegin(detector.getEventTime(), 
74:	(int) detector.getFocusX(), (int) detector.getFocusY()); 
-
78:	detector.getEventTime(), (int) detector.getFocusX(), (int) detector.getFocusY(), 
79:	detector.getScaleFactor()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isInProgress, onTouchEvent
81:	mScaleDetector.onTouchEvent(ev); 
-
97:	if (!mScaleDetector.isInProgress()) { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isInProgress, onTouchEvent
90:	mScaleDetector.onTouchEvent(ev); 
-
106:	if (!mScaleDetector.isInProgress()) { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getCurrentSpan, getFocusX, getFocusY, getPreviousSpan, getScaleFactor
137:	float span = detector.getCurrentSpan() - detector.getPreviousSpan(); 
138:	float targetScale = mCurrentScaleFactor * detector.getScaleFactor(); 
-
141:	zoomTo( targetScale, detector.getFocusX(), detector.getFocusY() ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
131:	float mScaleFactor = detector.getScaleFactor(); 
-
145:	matrix.postScale(mScaleFactor, mScaleFactor, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getScaleFactor
253:	mScaleFactor *= detector.getScaleFactor(); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getCurrentSpan
42:	return scaleGestureDetector.getCurrentSpan(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isInProgress, onTouchEvent
147:	mDetector.onTouchEvent(event); 
-
150:	if (!mDetector.isInProgress()) { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getCurrentSpan, getFocusX, getFocusY, getPreviousSpan, getScaleFactor
158:	float span = detector.getCurrentSpan() - detector.getPreviousSpan(); 
159:	float targetScale = mCurrentScaleFactor * detector.getScaleFactor(); 
-
162:	zoomTo(targetScale, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, isInProgress, onTouchEvent
58:	mScaleDetector.onTouchEvent(ev); 
-
63:	if (!mScaleDetector.isInProgress()) { 
-
74:	if (mScaleDetector.isInProgress()) { 
75:	final float gx = mScaleDetector.getFocusX(); 
76:	final float gy = mScaleDetector.getFocusY(); 
-
85:	if (!mScaleDetector.isInProgress()) { 
-
102:	final float gx = mScaleDetector.getFocusX(); 
103:	final float gy = mScaleDetector.getFocusY(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
216:	float mScaleFactor = detector.getScaleFactor(); 
-
230:	matrix.postScale(mScaleFactor, mScaleFactor, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: isInProgress, onTouchEvent
108:	mScaleDetector.onTouchEvent(ev); 
-
124:	if (!mScaleDetector.isInProgress()) { 
Full Snippet Info
7
CodeRank
This code example shows how to use the following methods: getScaleFactor
138:	mRender.onActionScale(detector.getScaleFactor()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: onTouchEvent
226:	handled |= scaleGestureDetector.onTouchEvent(mCurrentDownEvent); 
-
229:	handled |= scaleGestureDetector.onTouchEvent(e); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getScaleFactor
138:	mRender.onActionScale(detector.getScaleFactor()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getCurrentSpan, getFocusX, getFocusY, getPreviousSpan, getScaleFactor
159:	float span = detector.getCurrentSpan() - detector.getPreviousSpan(); 
160:	float targetScale = mCurrentScaleFactor * detector.getScaleFactor(); 
-
163:	zoomTo( targetScale, detector.getFocusX(), detector.getFocusY() ); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
221:	mScale = Math.min(Math.max(mScale * detector.getScaleFactor(), MIN_SCALE), MAX_SCALE); 
-
226:	int viewFocusX = (int) detector.getFocusX() - (v.getLeft() + mXScroll); 
227:	int viewFocusY = (int) detector.getFocusY() - (v.getTop() + mYScroll); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isInProgress
231:	if ( !mScaleDetector.isInProgress() ) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getScaleFactor
147:	mRender.onActionScale(detector.getScaleFactor()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getEventTime, getFocusX, getFocusY, getScaleFactor
79:	mContentViewCore.getContentViewGestureHandler().pinchBegin(detector.getEventTime(), 
80:	(int) detector.getFocusX(), (int) detector.getFocusY()); 
-
84:	detector.getEventTime(), (int) detector.getFocusX(), (int) detector.getFocusY(), 
85:	detector.getScaleFactor()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getScaleFactor
165:	mRender.onActionScale(detector.getScaleFactor()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getCurrentSpan, getFocusX, getFocusY, getPreviousSpan, getScaleFactor
504:	float span = detector.getCurrentSpan() - detector.getPreviousSpan(); 
505:	float targetScale = mCurrentScaleFactor * detector.getScaleFactor(); 
-
508:	zoomTo(targetScale, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
147:	float mScaleFactor = detector.getScaleFactor(); 
-
159:	matrix.postScale(mScaleFactor, mScaleFactor, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getScaleFactor
128:	return mActivity.superDispatchTouchEvent(m); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: isInProgress, onTouchEvent
81:	mScaleDetector.onTouchEvent(ev); 
-
97:	if (!mScaleDetector.isInProgress()) { 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
137:	float mScaleFactor = detector.getScaleFactor(); 
-
154:	detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getScaleFactor
46:	scaleFactor *= detector.getScaleFactor(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
282:	mScale = Math.min(Math.max(mScale * detector.getScaleFactor(), MIN_SCALE), MAX_SCALE); 
-
288:	int viewFocusX = (int)detector.getFocusX() - (v.getLeft() + mXScroll); 
289:	int viewFocusY = (int)detector.getFocusY() - (v.getTop() + mYScroll); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getScaleFactor
96:	mListener.onScale(detector.getScaleFactor(), SCALE_STATE_SCALEING); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getScaleFactor
128:	final float sf = detector.getScaleFactor(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
39:	tekst = tekst + "\n"+sgd.getScaleFactor() 
40:	+"\n("+sgd.getFocusX()+","+sgd.getFocusY()+")"; 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
179:	float mScaleFactor = detector.getScaleFactor(); 
-
212:	matrix.postScale(mScaleFactor, mScaleFactor, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
172:	float mScaleFactor = (float)Math.min(Math.max(.95f, detector.getScaleFactor()), 1.05); 
-
221:	matrix.postScale(mScaleFactor, mScaleFactor, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
32:	float scaleFactor = detector.getScaleFactor(); 
-
36:	this.m.setZoomOffsetX((int)detector.getFocusX()); 
37:	this.m.setZoomOffsetY((int)detector.getFocusY()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getScaleFactor
70:	float scaleFactor = detector.getScaleFactor(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
322:	mScaleFactor *= detector.getScaleFactor(); 
-
328:	float focusX = detector.getFocusX(); 
329:	float focusY = detector.getFocusY(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
52:	float s = detector.getScaleFactor(); 
53:	float px = detector.getFocusX(); 
54:	float py = detector.getFocusY(); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
178:	float mScaleFactor = detector.getScaleFactor(); 
-
211:	matrix.postScale(mScaleFactor, mScaleFactor, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
6
CodeRank
This code example shows how to use the following methods: getFocusX, getFocusY, getScaleFactor
151:	float scaleFactor = detector.getScaleFactor(); 
-
153:	drawView.setScale((double)scaleFactor, detector.getFocusX(), detector.getFocusY()); 
Full Snippet Info
6
CodeRank
Related Android ScaleGestureDetector Questions & Answers:
Other Android ScaleGestureDetector Examples
34:		int oldMeasuredWidth, oldMeasuredHeight;
35:	
36:		ScaleGestureDetector mScaleDetector;
37:	
38:		Context context;

Read More

See Code Examples for Android ScaleGestureDetector Methods: