| CLASS info |
| public class MediaView extends RelativeLayout |
| Multimedia view. |
| 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. |
| Return type | Method 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. |
| Constructor |
| public MediaView(Context context) |
| Multimedia view constructor. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| constructor |
| public MediaView(Context context, AttributeSet attrs) |
| Multimedia view constructor. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| attrs | Attributes in an XML element of an extended view. |
| constructor |
| public MediaView(Context context, AttributeSet attrs, int defStyleAttr) |
| Multimedia view constructor. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| attrs | Attributes in an XML element of an extended view. |
| defStyleAttr | Default style. |
| constructor |
| public MediaView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) |
| Multimedia view constructor. |
Parameters
| Parameter name | Parameter desc |
| context | Context. |
| attrs | Attributes in an XML element of an extended view. |
| defStyleAttr | Default style. |
| defStyleRes | Resource ID. |
| 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 name | Parameter desc |
| type | Options 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 name | Parameter desc |
| mediaContent | Multimedia content. |