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

Lines Matching refs:view

21 import android.view.LayoutInflater;
22 import android.view.MenuItem;
23 import android.view.MotionEvent;
24 import android.view.View;
25 import android.view.ViewGroup;
40 public View onCreateView(
46 View rootView = inflater.inflate(R.layout.elevation_basic, container, false);
48 View shape2 = rootView.findViewById(R.id.floating_shape_2);
51 * Sets a {@Link View.OnTouchListener} that responds to a touch event on shape2.
53 shape2.setOnTouchListener(new View.OnTouchListener() {
55 public boolean onTouch(View view, MotionEvent motionEvent) {
57 /* Raise view on ACTION_DOWN and lower it on ACTION_UP. */
60 Log.d(TAG, "ACTION_DOWN on view.");
61 view.setTranslationZ(120);
64 Log.d(TAG, "ACTION_UP on view.");
65 view.setTranslationZ(0);