Lines Matching refs:view

20 import android.support.v4.view.ViewCompat;
22 import android.view.View;
33 public void onDraw(Canvas c, RecyclerView recyclerView, View view,
36 Object originalElevation = view.getTag(R.id.item_touch_helper_previous_elevation);
38 originalElevation = ViewCompat.getElevation(view);
39 float newElevation = 1f + findMaxElevation(recyclerView, view);
40 ViewCompat.setElevation(view, newElevation);
41 view.setTag(R.id.item_touch_helper_previous_elevation, originalElevation);
44 super.onDraw(c, recyclerView, view, dX, dY, actionState, isCurrentlyActive);
64 public void clearView(View view) {
65 final Object tag = view.getTag(R.id.item_touch_helper_previous_elevation);
67 ViewCompat.setElevation(view, (Float) tag);
69 view.setTag(R.id.item_touch_helper_previous_elevation, null);
70 super.clearView(view);
77 public void clearView(View view) {
78 ViewCompat.setTranslationX(view, 0f);
79 ViewCompat.setTranslationY(view, 0f);
83 public void onSelected(View view) {
88 public void onDraw(Canvas c, RecyclerView recyclerView, View view,
90 ViewCompat.setTranslationX(view, dX);
91 ViewCompat.setTranslationY(view, dY);
96 View view, float dX, float dY, int actionState, boolean isCurrentlyActive) {
103 private void draw(Canvas c, RecyclerView parent, View view,
107 parent.drawChild(c, view, 0);
112 public void clearView(View view) {
113 view.setVisibility(View.VISIBLE);
117 public void onSelected(View view) {
118 view.setVisibility(View.INVISIBLE);
122 public void onDraw(Canvas c, RecyclerView recyclerView, View view,
125 draw(c, recyclerView, view, dX, dY);
131 View view, float dX, float dY,
134 draw(c, recyclerView, view, dX, dY);