Lines Matching refs:view

28 import android.view.View;
29 import android.view.ViewGroup;
35 * {@link View#setVisibility(int)} state of the view as well as whether it
36 * is parented in the current view hierarchy.
38 * <p>The ability of this transition to fade out a particular view, and the
40 * the situation of the view in the view hierarchy. For example, if a view was
41 * simply removed from its parent, then the view will be added into a {@link
42 * android.view.ViewGroupOverlay} while fading. If a visible view is
45 * the animation. However, if a view is in a hierarchy which is also altering
47 * view that is no longer in the hierarchy in the end scene still has a
52 * {@link Scene#getSceneForLayout(android.view.ViewGroup, int, android.content.Context)
54 * the starting scene view in order to fade it out.</p>
111 private Animator createAnimation(final View view, float startAlpha, final float endAlpha) {
115 view.setTransitionAlpha(startAlpha);
116 final ObjectAnimator anim = ObjectAnimator.ofFloat(view, "transitionAlpha", endAlpha);
120 final FadeAnimatorListener listener = new FadeAnimatorListener(view);
126 view.setTransitionAlpha(1);
133 public Animator onAppear(ViewGroup sceneRoot, View view,
137 View startView = (startValues != null) ? startValues.view : null;
139 startView + ", " + view);
141 return createAnimation(view, 0, 1);
145 public Animator onDisappear(ViewGroup sceneRoot, final View view, TransitionValues startValues,
147 return createAnimation(view, 1, 0);
155 public FadeAnimatorListener(View view) {
156 mView = view;