Lines Matching refs:center
145 // Offset the preview background to center this view accordingly
404 int[] center = new int[2];
405 float scale = getLocalCenterForIndex(index, center);
406 center[0] = (int) Math.round(scaleRelativeToDragLayer * center[0]);
407 center[1] = (int) Math.round(scaleRelativeToDragLayer * center[1]);
409 to.offset(center[0] - animateView.getMeasuredWidth() / 2,
410 center[1] - animateView.getMeasuredHeight() / 2);
490 private float getLocalCenterForIndex(int index, int[] center) {
498 center[0] = (int) Math.round(offsetX);
499 center[1] = (int) Math.round(offsetY);