Home | History | Annotate | Download | only in camera

Lines Matching refs:view

22 import android.view.View;
43 * @param view a thumbnail view that shows a picture captured and gets animated
45 public void startCaptureAnimation(final View view) {
49 View parentView = (View) view.getParent();
50 float slideDistance = (float) (parentView.getWidth() - view.getLeft());
52 float scaleX = ((float) parentView.getWidth()) / ((float) view.getWidth());
53 float scaleY = ((float) parentView.getHeight()) / ((float) view.getHeight());
56 int centerX = view.getLeft() + view.getWidth() / 2;
57 int centerY = view.getTop() + view.getHeight() / 2;
59 ObjectAnimator slide = ObjectAnimator.ofFloat(view, "translationX", 0f, slideDistance)
63 ObjectAnimator translateY = ObjectAnimator.ofFloat(view, "translationY",
74 view.setClickable(true);
90 ObjectAnimator.ofFloat(view, "scaleX", scale, 1f)
92 ObjectAnimator.ofFloat(view, "scaleY", scale, 1f)
94 ObjectAnimator.ofFloat(view, "translationX",
102 view.setClickable(false);
103 view.setVisibility(View.VISIBLE);
108 view.setScaleX(1f);
109 view.setScaleX(1f);
110 view.setTranslationX(0f);
111 view.setTranslationY(0f);
112 view.setVisibility(View.INVISIBLE);
119 view.setVisibility(View.INVISIBLE);
134 public void startFlashAnimation(final View flashOverlay) {
146 flashOverlay.setVisibility(View.VISIBLE);
152 flashOverlay.setVisibility(View.GONE);