public class

ArcGISMediaView

extends ArcGISAbstractMediaView
implements PopupEditable PopupRefreshable
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.esri.android.map.popup.ArcGISAbstractMediaView
           ↳ com.esri.android.map.popup.ArcGISMediaView

Class Overview

Default view to display the popup media

Summary

[Expand]
Inherited Constants
From class com.esri.android.map.popup.ArcGISAbstractMediaView
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
Fields
protected ArcGISMediaAdapter mMediaAdapter
[Expand]
Inherited Fields
From class com.esri.android.map.popup.ArcGISAbstractMediaView
From class android.view.View
Public Constructors
ArcGISMediaView(Context context, Popup popup)
Constructor taking a context and a popup.
Public Methods
ArcGISMediaAdapter getMediaAdapter()
Gets the media adapter.
void refresh()
Refresh the view.
void setEditMode(boolean editMode)
Sets the edit mode.
void setMediaAdapter(ArcGISMediaAdapter mediaAdapter)
Sets the media adapter.
void setVisibility(int visibility)
Protected Methods
void onMeasure(int widthMeasureSpec, int heightMeasureSpec)
[Expand]
Inherited Methods
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.view.ViewParent
From interface android.view.ViewManager
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.accessibility.AccessibilityEventSource
From interface com.esri.android.map.popup.PopupEditable
From interface com.esri.android.map.popup.PopupRefreshable

Fields

protected ArcGISMediaAdapter mMediaAdapter

Public Constructors

public ArcGISMediaView (Context context, Popup popup)

Constructor taking a context and a popup.

Parameters
context Context: the context
popup Popup: the popup

Public Methods

public ArcGISMediaAdapter getMediaAdapter ()

Gets the media adapter.

Returns
ArcGISMediaAdapter the mMediaAdapter

public void refresh ()

Refresh the view.

public void setEditMode (boolean editMode)

Sets the edit mode.

Parameters
editMode boolean: the edits the mode: true to switch to edit mode, false to revert to read-only mode

public void setMediaAdapter (ArcGISMediaAdapter mediaAdapter)

Sets the media adapter.

Parameters
mediaAdapter ArcGISMediaAdapter: the media adapter

public void setVisibility (int visibility)

Parameters
visibility int

Protected Methods

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)

Parameters
widthMeasureSpec int
heightMeasureSpec int