public class PropertiesListAdapter
extends android.widget.BaseAdapter
| Constructor and Description |
|---|
PropertiesListAdapter(android.content.Context context)
Create new, empty PropertiesListAdapter
|
PropertiesListAdapter(android.content.Context context,
Collection<ListItem> data)
Create new, populated PropertiesListAdapter
|
| Modifier and Type | Method and Description |
|---|---|
void |
changeData(Collection<ListItem> data)
Change the properties list to be viewed
|
int |
getCount()
Returns the number of items
|
Object |
getItem(int position)
Get item at specified position
|
long |
getItemId(int position)
Returns item identity.
|
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
Get view of item at specified position
|
boolean |
hasStableIds()
Override default value for hasStableIds
|
boolean |
isSingleLine() |
void |
setSingleLine(boolean singleLine) |
public PropertiesListAdapter(android.content.Context context)
context - which provides System Servicepublic PropertiesListAdapter(android.content.Context context,
Collection<ListItem> data)
context - which provides System Servicedata - Value collection.
The underlying properties list is populated with this data, retaining collection order.public boolean isSingleLine()
public void setSingleLine(boolean singleLine)
public void changeData(Collection<ListItem> data)
data - Collection containing values to be viewedpublic int getCount()
Adapter.getCount()public Object getItem(int position)
position - - zero-based list indexAdapter.getItem(int)public long getItemId(int position)
position - - zero-based list indexAdapter.getItemId(int)public android.view.View getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
position - Zero-based list indexconvertView - If not null, view to be reused for efficiencyparent - ViewGroupIllegalStateException - if position is invalidAdapter.getView(int, android.view.View, android.view.ViewGroup)public boolean hasStableIds()
hasStableIds in interface android.widget.AdapterhasStableIds in class android.widget.BaseAdapterBaseAdapter.hasStableIds()This documentation is licensed by Andrew Bowley under the GPLv3 License.