Home
last modified time | relevance | path

Searched refs:imageView (Results 1 – 23 of 23) sorted by relevance

/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DDetailsOverviewSharedElementHelper.java59 ImageView imageView = mViewHolder.mImageView; in saveImageViewScale() local
60 mSavedScaleType = imageView.getScaleType(); in saveImageViewScale()
61 mSavedMatrix = mSavedScaleType == ScaleType.MATRIX ? imageView.getMatrix() : null; in saveImageViewScale()
68 private static void updateImageViewAfterScaleTypeChange(ImageView imageView) { in updateImageViewAfterScaleTypeChange() argument
70 imageView.measure( in updateImageViewAfterScaleTypeChange()
71 MeasureSpec.makeMeasureSpec(imageView.getMeasuredWidth(), MeasureSpec.EXACTLY), in updateImageViewAfterScaleTypeChange()
72 MeasureSpec.makeMeasureSpec(imageView.getMeasuredHeight(), MeasureSpec.EXACTLY)); in updateImageViewAfterScaleTypeChange()
73 imageView.layout(imageView.getLeft(), imageView.getTop(), in updateImageViewAfterScaleTypeChange()
74 imageView.getRight(), imageView.getBottom()); in updateImageViewAfterScaleTypeChange()
79 ImageView imageView = mViewHolder.mImageView; in changeImageViewScale() local
[all …]
DDetailsOverviewLogoPresenter.java71 ImageView imageView = ((ImageView) viewHolder.view); in onBindViewHolder() local
72 imageView.setImageDrawable(row.getImageDrawable()); in onBindViewHolder()
74 ViewGroup.LayoutParams lp = imageView.getLayoutParams(); in onBindViewHolder()
77 imageView.setLayoutParams(lp); in onBindViewHolder()
/frameworks/base/core/java/android/app/
DSharedElementCallback.java172 ImageView imageView = ((ImageView) sharedElement); in onCaptureSharedElementSnapshot() local
173 Drawable d = imageView.getDrawable(); in onCaptureSharedElementSnapshot()
174 Drawable bg = imageView.getBackground(); in onCaptureSharedElementSnapshot()
181 imageView.getScaleType().toString()); in onCaptureSharedElementSnapshot()
182 if (imageView.getScaleType() == ScaleType.MATRIX) { in onCaptureSharedElementSnapshot()
183 Matrix matrix = imageView.getImageMatrix(); in onCaptureSharedElementSnapshot()
225 ImageView imageView = new ImageView(context); in onCreateSnapshotView() local
226 view = imageView; in onCreateSnapshotView()
227 imageView.setImageBitmap(bitmap); in onCreateSnapshotView()
228 imageView.setScaleType( in onCreateSnapshotView()
[all …]
DActivityTransitionCoordinator.java429 ImageView imageView = (ImageView) view; in setSharedElementState() local
431 imageView.setScaleType(scaleType); in setSharedElementState()
435 imageView.setImageMatrix(tempMatrix); in setSharedElementState()
601 ImageView imageView = (ImageView) view; in getOldSharedElementState() local
602 state.mScaleType = imageView.getScaleType(); in getOldSharedElementState()
604 state.mMatrix = new Matrix(imageView.getImageMatrix()); in getOldSharedElementState()
646 ImageView imageView = (ImageView) view; in setOriginalSharedElementState() local
647 imageView.setScaleType(state.mScaleType); in setOriginalSharedElementState()
649 imageView.setImageMatrix(state.mMatrix); in setOriginalSharedElementState()
754 ImageView imageView = (ImageView) view; in captureSharedElementState() local
[all …]
/frameworks/base/core/java/android/transition/
DChangeImageTransform.java84 ImageView imageView = (ImageView) view; in captureValues() local
85 Drawable drawable = imageView.getDrawable(); in captureValues()
99 ImageView.ScaleType scaleType = imageView.getScaleType(); in captureValues()
101 matrix = imageView.getImageMatrix(); in captureValues()
117 matrix = new Matrix(imageView.getImageMatrix()); in captureValues()
169 ImageView imageView = (ImageView) endValues.view; in createAnimator() local
170 Drawable drawable = imageView.getDrawable(); in createAnimator()
176 animator = createNullAnimator(imageView); in createAnimator()
184 ANIMATED_TRANSFORM_PROPERTY.set(imageView, startMatrix); in createAnimator()
185 animator = createMatrixAnimator(imageView, startMatrix, endMatrix); in createAnimator()
[all …]
/frameworks/support/v4/java/android/support/v4/app/
DSharedElementCallback.java170 ImageView imageView = ((ImageView) sharedElement); in onCaptureSharedElementSnapshot() local
171 Drawable d = imageView.getDrawable(); in onCaptureSharedElementSnapshot()
172 Drawable bg = imageView.getBackground(); in onCaptureSharedElementSnapshot()
179 imageView.getScaleType().toString()); in onCaptureSharedElementSnapshot()
180 if (imageView.getScaleType() == ScaleType.MATRIX) { in onCaptureSharedElementSnapshot()
181 Matrix matrix = imageView.getImageMatrix(); in onCaptureSharedElementSnapshot()
265 ImageView imageView = new ImageView(context); in onCreateSnapshotView() local
266 view = imageView; in onCreateSnapshotView()
267 imageView.setImageBitmap(bitmap); in onCreateSnapshotView()
268 imageView.setScaleType( in onCreateSnapshotView()
[all …]
/frameworks/base/docs/html/training/displaying-bitmaps/
Dprocess-bitmap.jd65 public BitmapWorkerTask(ImageView imageView) {
67 imageViewReference = new WeakReference<ImageView>(imageView);
81 final ImageView imageView = imageViewReference.get();
82 if (imageView != null) {
83 imageView.setImageBitmap(bitmap);
101 public void loadBitmap(int resId, ImageView imageView) {
102 BitmapWorkerTask task = new BitmapWorkerTask(imageView);
152 public void loadBitmap(int resId, ImageView imageView) {
153 if (cancelPotentialWork(resId, imageView)) {
154 final BitmapWorkerTask task = new BitmapWorkerTask(imageView);
[all …]
Ddisplay-bitmap.jd135 mImageView = (ImageView) v.findViewById(R.id.imageView);
158 public void loadBitmap(int resId, ImageView imageView) {
200 public void loadBitmap(int resId, ImageView imageView) {
295 ImageView imageView;
297 imageView = new ImageView(mContext);
298 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
299 imageView.setLayoutParams(new GridView.LayoutParams(
302 imageView = (ImageView) convertView;
304 … <strong>imageView.setImageResource(imageResIds[position]);</strong> // Load image into ImageView
305 return imageView;
[all …]
Dcache-bitmap.jd141 public void loadBitmap(int resId, ImageView imageView) {
/frameworks/ex/framesequence/samples/FrameSequenceSamples/src/com/android/framesequence/samples/
DFrameSequenceTest.java96 ImageView imageView = (ImageView) findViewById(R.id.imageview); in onResume() local
108 imageView.setImageDrawable(mDrawable); in onResume()
114 ImageView imageView = (ImageView) findViewById(R.id.imageview); in onPause() local
120 imageView.setImageDrawable(null); in onPause()
/frameworks/base/docs/html/guide/topics/ui/layout/
Dgridview.jd122 ImageView imageView;
125 imageView = new ImageView(mContext);
126 imageView.setLayoutParams(new GridView.LayoutParams(85, 85));
127 imageView.setScaleType(ImageView.ScaleType.CENTER_CROP);
128 imageView.setPadding(8, 8, 8, 8);
130 imageView = (ImageView) convertView;
133 imageView.setImageResource(mThumbIds[position]);
134 return imageView;
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/bars/
DStatusBar.java96 ImageView imageView = (ImageView) child; in loadIcon() local
106 imageView.setImageDrawable( in loadIcon()
DCustomBar.java108 ImageView imageView = (ImageView) child; in loadIcon() local
132 imageView.setImageDrawable(drawable); in loadIcon()
/frameworks/base/tools/layoutlib/bridge/tests/res/testApp/MyApplication/build/intermediates/classes/debug/com/android/layoutlib/test/myapplication/
DR$id.classR.java package com.android.layoutlib.test.myapplication public final com.android. ...
/frameworks/opt/chips/src/com/android/ex/chips/
DDropdownChipLayouter.java155 bindIconToView(showImage, entry, viewHolder.imageView, type); in bindView()
421 public final ImageView imageView; field in DropdownChipLayouter.ViewHolder
430 imageView = (ImageView) view.findViewById(getPhotoResId()); in ViewHolder()
/frameworks/support/v7/preference/src/android/support/v7/preference/
DPreference.java496 final ImageView imageView = (ImageView) holder.findViewById(android.R.id.icon); in onBindViewHolder() local
497 if (imageView != null) { in onBindViewHolder()
503 imageView.setImageDrawable(mIcon); in onBindViewHolder()
506 imageView.setVisibility(mIcon != null ? View.VISIBLE : View.GONE); in onBindViewHolder()
/frameworks/base/core/java/android/preference/
DPreference.java567 final ImageView imageView = (ImageView) view.findViewById(com.android.internal.R.id.icon); in onBindView() local
568 if (imageView != null) { in onBindView()
574 imageView.setImageDrawable(mIcon); in onBindView()
577 imageView.setVisibility(mIcon != null ? View.VISIBLE : View.GONE); in onBindView()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DExpandableNotificationRow.java147 private void setIconRunning(ImageView imageView, boolean running) { in setIconRunning() argument
148 if (imageView != null) { in setIconRunning()
149 Drawable drawable = imageView.getDrawable(); in setIconRunning()
/frameworks/base/docs/html/training/basics/network-ops/
Dconnecting.jd267 ImageView imageView = (ImageView) findViewById(R.id.image_view);
268 imageView.setImageBitmap(bitmap);
/frameworks/base/docs/html/guide/topics/ui/
Ddrag-drop.jd580 ImageView imageView = new ImageView(this);
583 imageView.setImageBitmap(mIconBitmap);
586 imageView.setTag(IMAGEVIEW_TAG);
592 imageView.setOnLongClickListener(new View.OnLongClickListener() {
610 View.DragShadowBuilder myShadow = new MyDragShadowBuilder(imageView);
869 View imageView = new ImageView(this);
872 imageView.setOnDragListener(mDragListen);
/frameworks/base/docs/html/guide/topics/resources/
Daccessing-resources.jd95 ImageView imageView = (ImageView) findViewById(R.id.myimageview);
96 imageView.setImageResource(<strong>R.drawable.myimage</strong>);
/frameworks/base/docs/html/training/multiple-threads/
Dcreate-threadpool.jd109 PhotoView imageView,
/frameworks/base/core/java/android/widget/
DRemoteViews.java863 ImageView imageView = (ImageView) target; in apply() local
864 targetDrawable = imageView.getDrawable(); in apply()