public class

IdentifyResultSpinnerAdapter

extends Object
implements SpinnerAdapter
java.lang.Object
   ↳ com.esri.android.action.IdentifyResultSpinnerAdapter

Class Overview

Convenient class to display a List of IdentifyResults in a Spinner.

Summary

[Expand]
Inherited Constants
From interface android.widget.Adapter
Public Constructors
IdentifyResultSpinnerAdapter(Context context, List<IdentifyResult> results)
Constructor taking in a List of results intended to be displayed in a IdentifyResultSpinner.
Public Methods
int getCount()
View getDropDownView(int position, View convertView, ViewGroup parent)
Object 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()
void registerDataSetObserver(DataSetObserver observer)
void unregisterDataSetObserver(DataSetObserver observer)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.widget.SpinnerAdapter
From interface android.widget.Adapter

Public Constructors

public IdentifyResultSpinnerAdapter (Context context, List<IdentifyResult> results)

Constructor taking in a List of results intended to be displayed in a IdentifyResultSpinner.

Parameters
context Context: the context of the application
results List: the results to be displayed

Public Methods

public int getCount ()

Returns
int

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

Parameters
position int
convertView View
parent ViewGroup
Returns
View

public Object getItem (int position)

Parameters
position int
Returns
Object

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 void registerDataSetObserver (DataSetObserver observer)

Parameters
observer DataSetObserver

public void unregisterDataSetObserver (DataSetObserver observer)

Parameters
observer DataSetObserver