Lines Matching refs:view

22 import android.view.LayoutInflater;
23 import android.view.View;
24 import android.view.animation.AnimationSet;
25 import android.view.animation.ScaleAnimation;
26 import android.view.animation.TranslateAnimation;
175 removeView(viewWrapper.view);
194 if (viewWrapper.view instanceof AsyncImageView) {
195 ((AsyncImageView) viewWrapper.view).setColorFilter(color);
202 if (viewWrapper.view instanceof AsyncImageView) {
203 ((AsyncImageView) viewWrapper.view).clearColorFilter();
235 // Try to recycle a previous view first
247 final View view = AttachmentPreviewFactory.createAttachmentPreview(layoutInflater,
251 if (view == null) {
256 if (view instanceof AsyncImageView && mImageViewDelayLoader != null) {
257 AsyncImageView asyncImageView = (AsyncImageView) view;
260 addView(view);
261 attachmentWrapper = new ViewWrapper(view, attachment);
274 // The first view will animate in using PopupTransitionAnimation, but the remaining
278 AttachmentPreview.tryAnimateViewIn(attachment, attachmentWrapper.view);
283 // Build the plus text view (e.g. "+2") for when there are more attachments than what
308 final View view = mPreviewViews.get(i).view;
310 view.measure(imageTile.getWidthMeasureSpec(cellWidth, padding),
314 if (view instanceof AsyncImageView) {
318 view.getMeasuredWidth(),
319 view.getMeasuredHeight());
320 ((AsyncImageView) view).setImageResourceId(imageRequest);
324 // The plus text view always covers the last attachment.
342 final View view = viewWrapper.view;
346 view.layout(tileLeft + padding, tileTop + padding,
347 tileLeft + view.getMeasuredWidth(),
348 tileTop + view.getMeasuredHeight());
353 viewWrapper.prevLeft = view.getLeft();
354 viewWrapper.prevTop = view.getTop();
355 viewWrapper.prevWidth = view.getWidth();
356 viewWrapper.prevHeight = view.getHeight();
360 // The plus text view always covers the last attachment.
372 final View view = viewWrapper.view;
375 final int xOffset = viewWrapper.prevLeft - view.getLeft();
376 final int yOffset = viewWrapper.prevTop - view.getTop();
377 final float scaleX = viewWrapper.prevWidth / (float) view.getWidth();
378 final float scaleY = viewWrapper.prevHeight / (float) view.getHeight();
392 view.startAnimation(animationSet);
393 view.invalidate();
394 viewWrapper.prevLeft = view.getLeft();
395 viewWrapper.prevTop = view.getTop();
396 viewWrapper.prevWidth = view.getWidth();
397 viewWrapper.prevHeight = view.getHeight();
404 return wrapper.view;
411 final View view;
419 ViewWrapper(final View view, final MessagePartData attachment) {
420 this.view = view;