Home
last modified time | relevance | path

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

12

/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.java140 ImageView imageView = ((ImageView) viewHolder.view); in onBindViewHolder() local
141 imageView.setImageDrawable(row.getImageDrawable()); in onBindViewHolder()
145 ViewGroup.LayoutParams lp = imageView.getLayoutParams(); in onBindViewHolder()
148 if (imageView.getMaxWidth() > 0 || imageView.getMaxHeight() > 0) { in onBindViewHolder()
150 if (imageView.getMaxWidth() > 0) { in onBindViewHolder()
151 if (lp.width > imageView.getMaxWidth()) { in onBindViewHolder()
152 maxScaleWidth = imageView.getMaxWidth() / (float) lp.width; in onBindViewHolder()
156 if (imageView.getMaxHeight() > 0) { in onBindViewHolder()
157 if (lp.height > imageView.getMaxHeight()) { in onBindViewHolder()
158 maxScaleHeight = imageView.getMaxHeight() / (float) lp.height; in onBindViewHolder()
[all …]
/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.java431 ImageView imageView = (ImageView) view; in setSharedElementState() local
433 imageView.setScaleType(scaleType); in setSharedElementState()
437 imageView.setImageMatrix(tempMatrix); in setSharedElementState()
603 ImageView imageView = (ImageView) view; in getOldSharedElementState() local
604 state.mScaleType = imageView.getScaleType(); in getOldSharedElementState()
606 state.mMatrix = new Matrix(imageView.getImageMatrix()); in getOldSharedElementState()
648 ImageView imageView = (ImageView) view; in setOriginalSharedElementState() local
649 imageView.setScaleType(state.mScaleType); in setOriginalSharedElementState()
651 imageView.setImageMatrix(state.mMatrix); in setOriginalSharedElementState()
756 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/compat/java/android/support/v4/app/
DSharedElementCallback.java169 ImageView imageView = ((ImageView) sharedElement); in onCaptureSharedElementSnapshot() local
170 Drawable d = imageView.getDrawable(); in onCaptureSharedElementSnapshot()
171 Drawable bg = imageView.getBackground(); in onCaptureSharedElementSnapshot()
178 imageView.getScaleType().toString()); in onCaptureSharedElementSnapshot()
179 if (imageView.getScaleType() == ScaleType.MATRIX) { in onCaptureSharedElementSnapshot()
180 Matrix matrix = imageView.getImageMatrix(); in onCaptureSharedElementSnapshot()
264 ImageView imageView = new ImageView(context); in onCreateSnapshotView() local
265 view = imageView; in onCreateSnapshotView()
266 imageView.setImageBitmap(bitmap); in onCreateSnapshotView()
267 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 …]
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/graphics/
DImageLoader.java45 static void loadMediaStoreThumbnail(final ImageView imageView, in loadMediaStoreThumbnail() argument
53 imageView.setImageBitmap(cachedValue); in loadMediaStoreThumbnail()
64 imageView.getContext().getContentResolver(), in loadMediaStoreThumbnail()
72 imageView.setImageBitmap(bitmap); in loadMediaStoreThumbnail()
DPaletteActivity.java190 ImageView imageView = (ImageView) view.findViewById(R.id.image); in bindView() local
191 imageView.setImageDrawable(null); in bindView()
203 ImageLoader.loadMediaStoreThumbnail(imageView, id, new ImageLoader.Listener() { in bindView()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/app/
DAppCompatAnimatedVector.java34 final ImageView imageView = (ImageView) findViewById(R.id.vector_image); in onCreate() local
35 if (imageView != null) { in onCreate()
36 final Drawable src = imageView.getDrawable(); in onCreate()
/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/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBarIconController.java238 ImageView imageView = (ImageView) mStatusIcons.getChildAt(viewIndex); in setExternalIcon() local
239 imageView.setScaleType(ImageView.ScaleType.FIT_CENTER); in setExternalIcon()
240 imageView.setAdjustViewBounds(true); in setExternalIcon()
241 setHeightAndCenter(imageView, height); in setExternalIcon()
242 imageView = (ImageView) mStatusIconsKeyguard.getChildAt(viewIndex); in setExternalIcon()
243 imageView.setScaleType(ImageView.ScaleType.FIT_CENTER); in setExternalIcon()
244 imageView.setAdjustViewBounds(true); in setExternalIcon()
245 setHeightAndCenter(imageView, height); in setExternalIcon()
248 private void setHeightAndCenter(ImageView imageView, int height) { in setHeightAndCenter() argument
249 ViewGroup.LayoutParams params = imageView.getLayoutParams(); in setHeightAndCenter()
[all …]
/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/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/
DTextCardView.java40 final ImageView imageView = (ImageView) findViewById(R.id.main_image); in updateUi() local
53 imageView.setImageDrawable(drawable); in updateUi()
DCharacterCardView.java54 final ImageView imageView = (ImageView) findViewById(R.id.main_image); in updateUi() local
64 imageView.setImageDrawable(drawable); in updateUi()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/cards/presenters/
DSideInfoCardPresenter.java51 ImageView imageView = (ImageView) cardView.findViewById(R.id.main_image); in onBindViewHolder() local
61 .into(imageView); in onBindViewHolder()
/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()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationHeaderUtil.java73 ImageView imageView = (ImageView) view;
74 imageView.getDrawable().mutate();
79 imageView.getDrawable().setColorFilter(grey, PorterDuff.Mode.SRC_ATOP);
82 imageView.getDrawable().setColorFilter(originalColor,
/frameworks/rs/java/tests/HealingBrush/src/rs/example/android/com/healingbrush/
DDrawView.java79 public void setImageView(ImageView imageView) { in setImageView() argument
80 mImageView = imageView; in setImageView()
/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/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/cards/
DCardExampleFragment.java81 ImageView imageView = ((ImageCardView) viewHolder.view).getMainImageView(); in setupUi()
83 imageView, DetailViewExampleFragment.TRANSITION_NAME).toBundle(); in setupUi()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPageIndicator.java143 private void playAnimation(ImageView imageView, int res) {
145 imageView.setImageDrawable(avd);
/frameworks/base/packages/EasterEgg/src/com/android/egg/neko/
DNekoLand.java217 holder.imageView.setImageIcon(mCats[position].createIcon(context, size, size)); in onBindViewHolder()
317 private final ImageView imageView; field in NekoLand.CatHolder
325 imageView = (ImageView) itemView.findViewById(android.R.id.icon); in CatHolder()
/frameworks/opt/chips/src/com/android/ex/chips/
DDropdownChipLayouter.java178 bindIconToView(showImage, entry, viewHolder.imageView, type); in bindView()
541 public final ImageView imageView; field in DropdownChipLayouter.ViewHolder
555 imageView = (ImageView) view.findViewById(getPhotoResId()); in ViewHolder()

12