目录

CLASS info
public class MediaView extends RelativeLayout
Multimedia view.

Public Constructor Summary

Constructor name

MediaView(Context context)

Multimedia view constructor.

MediaView(Context context, AttributeSet attrs)

Multimedia view constructor.

MediaView(Context context, AttributeSet attrs, int defStyleAttr)

Multimedia view constructor.

MediaView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)

Multimedia view constructor.

Public Mehtod Summary

Return typeMethod name
void

setImageScaleType(ImageView.ScaleType type)

Sets the options for scaling the bounds of an image to the bounds of this view.

void

setMediaContent(MediaContent mediaContent)

Sets the multimedia content to be displayed in a multimedia view.

Public Constructors

Constructor
public MediaView(Context context)
Multimedia view constructor.

Parameters

Parameter nameParameter desc
contextContext.
constructor
public MediaView(Context context, AttributeSet attrs)
Multimedia view constructor.

Parameters

Parameter nameParameter desc
contextContext.
attrsAttributes in an XML element of an extended view.
constructor
public MediaView(Context context, AttributeSet attrs, int defStyleAttr)
Multimedia view constructor.

Parameters

Parameter nameParameter desc
contextContext.
attrsAttributes in an XML element of an extended view.
defStyleAttrDefault style.
constructor
public MediaView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes)
Multimedia view constructor.

Parameters

Parameter nameParameter desc
contextContext.
attrsAttributes in an XML element of an extended view.
defStyleAttrDefault style.
defStyleResResource ID.

Public Methods

Method
public void setImageScaleType(ImageView.ScaleType type)
Sets the options for scaling the bounds of an image to the bounds of this view.

Parameters

Parameter nameParameter desc
typeOptions for scaling the bounds of an image to the bounds of this view.
Method
public void setMediaContent(MediaContent mediaContent)
Sets the multimedia content to be displayed in a multimedia view.

Parameters

Parameter nameParameter desc
mediaContentMultimedia content.