ImageView

public class ImageView implements Parcelable


Holds relevant metadata to render a bitmap from a png resource file.

Summary

Constants

static final Parcelable.Creator<ImageView>

Public fields

int

Public constructors

Default constructor for ImageView.

ImageView(int resourceId)

Constructor for ImageView with parameters for required fields.

Public methods

boolean
int

Returns the resource id of the png image.

int
void
setResourceId(int resourceId)

Sets the resource id that points to a png image already packaged in the host app's resources.

void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From android.os.Parcelable
abstract int

Constants

CREATOR

public static final Parcelable.Creator<ImageViewCREATOR

Public fields

resourceId

public int resourceId

Public constructors

ImageView

public ImageView()

Default constructor for ImageView.

ImageView

public ImageView(int resourceId)

Constructor for ImageView with parameters for required fields.

Parameters
int resourceId

The resource id of the png image.

Public methods

equals

public boolean equals(@Nullable Object other)

getResourceId

public int getResourceId()

Returns the resource id of the png image. Default value is -1 .

hashCode

public int hashCode()

setResourceId

public void setResourceId(int resourceId)

Sets the resource id that points to a png image already packaged in the host app's resources.

writeToParcel

public void writeToParcel(Parcel dest, int flags)