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
[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.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface com.esri.android.map.popup.PopupEditable
From interface com.esri.android.map.popup.PopupRefreshable

Public Constructors

public ArcGISMediaView (Context context, Popup popup)

Constructor taking a context and a popup.

Parameters
context the context
popup the popup

Public Methods

public ArcGISMediaAdapter getMediaAdapter ()

Gets the media adapter.

Returns
  • the mMediaAdapter

public void refresh ()

Refresh the view.

public void setEditMode (boolean editMode)

Sets the edit mode.

Parameters
editMode 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 the media adapter

public void setVisibility (int visibility)

Protected Methods

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)