public class

ArcGISAttachmentsView

extends ArcGISAbstractMediaView
implements AttachmentView 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.ArcGISAttachmentsView

Class Overview

Default view to display attachments in the popup.

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
ArcGISAttachmentsView(Context context, Popup popup)
Constructor taking a Context and a Popup.
Public Methods
void addAttachment(Uri uri)
Adds an attachment.
List<File> getAddedAttachments()
Returns the added attachments
List<Integer> getDeletedAttachmentIDs()
Returns the ID's of the deleted attachments.
void refresh()
Refresh the view.
void setEditMode(boolean editMode)
Sets the edit mode.
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.AttachmentView
From interface com.esri.android.map.popup.PopupEditable
From interface com.esri.android.map.popup.PopupRefreshable

Public Constructors

public ArcGISAttachmentsView (Context context, Popup popup)

Constructor taking a Context and a Popup.

Parameters
context the context
popup the popup

Public Methods

public void addAttachment (Uri uri)

Adds an attachment.

Parameters
uri the uri of the attachment to be added

public List<File> getAddedAttachments ()

Returns the added attachments

Returns
  • a List of added files

public List<Integer> getDeletedAttachmentIDs ()

Returns the ID's of the deleted attachments.

Returns
  • a List of ID's of the deleted attachments

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

Protected Methods

protected void onMeasure (int widthMeasureSpec, int heightMeasureSpec)