Lines Matching refs:view
24 import android.view.LayoutInflater;
25 import android.view.MotionEvent;
26 import android.view.View;
27 import android.view.ViewAnimationUtils;
28 import android.view.ViewGroup;
29 import android.view.animation.AccelerateDecelerateInterpolator;
32 * This sample shows a view that is revealed when a button is clicked.
45 public View onCreateView(LayoutInflater inflater, ViewGroup container,
47 final View rootView = inflater.inflate(R.layout.reveal_effect_basic, container, false);
49 View button = rootView.findViewById(R.id.button);
51 // Set a listener to reveal the view when clicked.
52 button.setOnClickListener(new View.OnClickListener() {
54 public void onClick(View view) {
55 View shape = rootView.findViewById(R.id.circle);
57 // Create a reveal {@link Animator} that starts clipping the view from
58 // the top left corner until the whole view is covered.