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.ListAdapter
From interface android.widget.Adapter

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 Context: the context
popup Popup: the popup

Public Methods

public boolean areAllItemsEnabled ()

Returns
boolean

public int getColumnWidth ()

Gets the column width.

Returns
int the mColumnWidth

public int getCount ()

Returns
int

public PopupMediaInfo getItem (int position)

Parameters
position int
Returns
PopupMediaInfo

public long getItemId (int position)

Parameters
position int
Returns
long

public int getItemViewType (int position)

Parameters
position int
Returns
int

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

Parameters
position int
convertView View
parent ViewGroup
Returns
View

public int getViewTypeCount ()

Returns
int

public boolean hasStableIds ()

Returns
boolean

public boolean isEmpty ()

Returns
boolean

public boolean isEnabled (int position)

Parameters
position int
Returns
boolean

public void registerDataSetObserver (DataSetObserver observer)

Parameters
observer DataSetObserver

public void setColumnWidth (int columnWidth)

Sets the column width.

Parameters
columnWidth int: the column width

public void unregisterDataSetObserver (DataSetObserver observer)

Parameters
observer DataSetObserver