Home | History | Annotate | Download | only in com.example.android.elevationdrag

Lines Matching refs:view

24 import android.view.LayoutInflater;
25 import android.view.View;
26 import android.view.ViewGroup;
27 import android.view.ViewOutlineProvider;
36 /* The current elevation of the floating view. */
52 public View onCreateView(LayoutInflater inflater, ViewGroup container,
54 View rootView = inflater.inflate(R.layout.ztranslation, container, false);
56 /* Find the {@link View} to apply z-translation to. */
57 final View floatingShape = rootView.findViewById(R.id.circle);
59 /* Define the shape of the {@link View}'s shadow by setting one of the {@link Outline}s. */
62 /* Clip the {@link View} with its outline. */
71 /* Animate the translation of the {@link View}. Note that the translation
83 rootView.findViewById(R.id.raise_bt).setOnClickListener(new View.OnClickListener() {
85 public void onClick(View v) {
93 rootView.findViewById(R.id.lower_bt).setOnClickListener(new View.OnClickListener() {
95 public void onClick(View v) {
110 * ViewOutlineProvider which sets the outline to be an oval which fits the view bounds.
114 public void getOutline(View view, Outline outline) {
115 outline.setOval(0, 0, view.getWidth(), view.getHeight());