Lines Matching refs:view

30 import android.support.v4.view.animation.FastOutSlowInInterpolator;
32 import android.view.View;
33 import android.view.animation.Interpolator;
54 public Integer get(View view) {
55 Drawable background = view.getBackground();
64 public void set(View view, Integer value) {
65 setBackgroundAlpha(view, value);
74 * @param view the affected view
77 public static void setBackgroundAlpha(View view, Integer value) {
78 Drawable background = view.getBackground();
89 public Integer get(ImageView view) {
90 return view.getDrawable().getAlpha();
94 public void set(ImageView view, Integer value) {
95 view.getDrawable().setAlpha(value);
102 public Integer get(ImageView view) {
107 public void set(ImageView view, Integer value) {
109 final Drawable drawable = view.getDrawable();
112 view.setImageDrawable(wrappedDrawable);
171 public static ValueAnimator getScaleAnimator(View view, float... values) {
172 return ObjectAnimator.ofPropertyValuesHolder(view,
177 public static ValueAnimator getAlphaAnimator(View view, float... values) {
178 return ObjectAnimator.ofFloat(view, View.ALPHA, values);
184 public Integer get(View view) {
185 return view.getLeft();
189 public void set(View view, Integer left) {
190 view.setLeft(left);
197 public Integer get(View view) {
198 return view.getTop();
202 public void set(View view, Integer top) {
203 view.setTop(top);
210 public Integer get(View view) {
211 return view.getBottom();
215 public void set(View view, Integer bottom) {
216 view.setBottom(bottom);
223 public Integer get(View view) {
224 return view.getRight();
228 public void set(View view, Integer right) {
229 view.setRight(right);
234 * @param target the view to be morphed
268 * Returns an animator that animates the bounds of a single view.
270 public static Animator getBoundsAnimator(View view, int fromLeft, int fromTop, int fromRight,
272 view.setLeft(fromLeft);
273 view.setTop(fromTop);
274 view.setRight(fromRight);
275 view.setBottom(fromBottom);
277 return ObjectAnimator.ofPropertyValuesHolder(view,
284 public static void startDrawableAnimation(ImageView view) {
285 final Drawable d = view.getDrawable();