public class

ArcGISMediaAdapter

extends Object
implements ListAdapter
java.lang.Object
   ↳ com.esri.android.map.popup.ArcGISMediaAdapter

Class Overview

Default media adapter.

Summary

[Expand]
Inherited Constants
From interface android.widget.Adapter
Fields
protected ArrayList<PopupMediaInfo> mMediaInfos
protected ArrayList<ArcGISMediaAdapter.MediaView> mMediaViewCache
Public Constructors
ArcGISMediaAdapter(Context context, Popup popup)
Constructor taking a context and a popup.
Public Methods
boolean areAllItemsEnabled()
int getColumnWidth()
Gets the column width.
int getCount()
PopupMediaInfo getItem(int position)
long getItemId(int position)
int getItemViewType(int position)
View getView(int position, View convertView, ViewGroup parent)
int getViewTypeCount()
boolean hasStableIds()
boolean isEmpty()
boolean isEnabled(int position)
void registerDataSetObserver(DataSetObserver observer)
void setColumnWidth(int columnWidth)
Sets the column width.
void unregisterDataSetObserver(DataSetObserver observer)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.widget.Adapter
From interface android.widget.ListAdapter

Fields

protected ArrayList<PopupMediaInfo> mMediaInfos

protected ArrayList<ArcGISMediaAdapter.MediaView> mMediaViewCache

Public Constructors

public ArcGISMediaAdapter (Context context, Popup popup)

Constructor taking a context and a popup.

Parameters
context the context
popup the popup

Public Methods

public boolean areAllItemsEnabled ()

public int getColumnWidth ()

Gets the column width.

Returns
  • the mColumnWidth

public int getCount ()

public PopupMediaInfo getItem (int position)

public long getItemId (int position)

public int getItemViewType (int position)

public View getView (int position, View convertView, ViewGroup parent)

public int getViewTypeCount ()

public boolean hasStableIds ()

public boolean isEmpty ()

public boolean isEnabled (int position)

public void registerDataSetObserver (DataSetObserver observer)

public void setColumnWidth (int columnWidth)

Sets the column width.

Parameters
columnWidth the column width

public void unregisterDataSetObserver (DataSetObserver observer)