com.esri.android.action
Class IdentifyResultSpinnerAdapter
java.lang.Object
com.esri.android.action.IdentifyResultSpinnerAdapter
- All Implemented Interfaces:
- android.widget.Adapter, android.widget.SpinnerAdapter
public class IdentifyResultSpinnerAdapter
- extends Object
- implements android.widget.SpinnerAdapter
Convenient class to display a List of IdentifyResults in a Spinner.
- Since:
- 1.0
| Fields inherited from interface android.widget.Adapter |
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IdentifyResultSpinnerAdapter
public IdentifyResultSpinnerAdapter(android.content.Context context,
List<IdentifyResult> results)
- Constructor taking in a
List of results intended to be displayed in a IdentifyResultSpinner.
- Parameters:
context - the context of the applicationresults - the results to be displayed- Since:
- 1.0
getCount
public int getCount()
- Specified by:
getCount in interface android.widget.Adapter
getItem
public Object getItem(int position)
- Specified by:
getItem in interface android.widget.Adapter
getItemId
public long getItemId(int position)
- Specified by:
getItemId in interface android.widget.Adapter
getView
public android.view.View getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
- Specified by:
getView in interface android.widget.Adapter
getDropDownView
public android.view.View getDropDownView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
- Specified by:
getDropDownView in interface android.widget.SpinnerAdapter
getItemViewType
public int getItemViewType(int position)
- Specified by:
getItemViewType in interface android.widget.Adapter
getViewTypeCount
public int getViewTypeCount()
- Specified by:
getViewTypeCount in interface android.widget.Adapter
hasStableIds
public boolean hasStableIds()
- Specified by:
hasStableIds in interface android.widget.Adapter
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty in interface android.widget.Adapter
registerDataSetObserver
public void registerDataSetObserver(android.database.DataSetObserver observer)
- Specified by:
registerDataSetObserver in interface android.widget.Adapter
unregisterDataSetObserver
public void unregisterDataSetObserver(android.database.DataSetObserver observer)
- Specified by:
unregisterDataSetObserver in interface android.widget.Adapter
Copyright © 2010. All Rights Reserved.