ImageView

Class of android.widget · ImageView.java · Android's reference

public class ImageView extends View

ImageView ← View

A view of a drawable, scaled into the view by its scale type.

Nested types

Extended in the framework by

Constructors

public ImageView(Context context) source
public ImageView(Context context, AttributeSet attrs) source
public ImageView(Context context, AttributeSet attrs, int defStyleAttr) source
public ImageView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) source

Methods

public void setImageDrawable(Drawable drawable) source
public Drawable getDrawable() source
public void setImageResource(int resId) source
public void setImageBitmap(android.graphics.Bitmap bm) source
public void setImageURI(Uri uri) source

Reads a bitmap from a content, file or android.resource URI through the content resolver.

public void setImageLevel(int level) source
public void setScaleType(ScaleType scaleType) source
public ScaleType getScaleType() source
public Matrix getImageMatrix() source
public void setImageMatrix(Matrix matrix) source
public void setImageTintList(ColorStateList tint) source
public ColorStateList getImageTintList() source
public void setImageTintMode(PorterDuff.Mode tintMode) source
public PorterDuff.Mode getImageTintMode() source
public final void setColorFilter(int color) source
public final void setColorFilter(int color, PorterDuff.Mode mode) source
public void setColorFilter(ColorFilter cf) source
public final void clearColorFilter() source
public ColorFilter getColorFilter() source
protected void onAnimationStart() empty body source
protected void onAnimationEnd() empty body source
protected void drawableStateChanged() source
protected boolean verifyDrawable(Drawable dr) source
public void setAdjustViewBounds(boolean adjustViewBounds) source

whether the view's bounds follow the drawable's aspect ratio

public boolean getAdjustViewBounds() source
public void setMaxWidth(int maxWidth) source
public int getMaxWidth() source
public void setMaxHeight(int maxHeight) source
public int getMaxHeight() source
protected void onMeasure(int widthMeasureSpec, int heightMeasureSpec) source
protected void onDraw(Canvas canvas) source
public CharSequence getAccessibilityClassName() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.