public class AsymmetricGridViewAdapter<T extends AsymmetricItem>
extends android.widget.BaseAdapter
implements android.view.View.OnClickListener, android.view.View.OnLongClickListener, android.widget.WrapperListAdapter
| Modifier and Type | Field and Description |
|---|---|
protected android.content.Context |
context |
protected AsymmetricGridView |
listView |
protected android.widget.ListAdapter |
wrappedAdapter |
| Constructor and Description |
|---|
AsymmetricGridViewAdapter(android.content.Context context,
AsymmetricGridView listView,
android.widget.ListAdapter adapter) |
| Modifier and Type | Method and Description |
|---|---|
int |
getCount() |
T |
getItem(int position) |
long |
getItemId(int position) |
int |
getRowCount() |
protected int |
getRowHeight(AsymmetricItem item) |
protected int |
getRowHeight(int rowSpan) |
protected int |
getRowWidth(AsymmetricItem item) |
protected int |
getRowWidth(int columnSpan) |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
android.widget.ListAdapter |
getWrappedAdapter() |
void |
onClick(android.view.View v) |
boolean |
onLongClick(android.view.View v) |
void |
recalculateItemsPerRow() |
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserverprotected final AsymmetricGridView listView
protected final android.content.Context context
protected final android.widget.ListAdapter wrappedAdapter
public AsymmetricGridViewAdapter(android.content.Context context,
AsymmetricGridView listView,
android.widget.ListAdapter adapter)
protected int getRowHeight(AsymmetricItem item)
public T getItem(int position)
getItem in interface android.widget.Adapterpublic long getItemId(int position)
getItemId in interface android.widget.Adapterprotected int getRowHeight(int rowSpan)
protected int getRowWidth(AsymmetricItem item)
protected int getRowWidth(int columnSpan)
public android.view.View getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
getView in interface android.widget.Adapterpublic void onClick(android.view.View v)
onClick in interface android.view.View.OnClickListenerpublic boolean onLongClick(android.view.View v)
onLongClick in interface android.view.View.OnLongClickListenerpublic int getCount()
getCount in interface android.widget.Adapterpublic int getRowCount()
public void recalculateItemsPerRow()
public android.widget.ListAdapter getWrappedAdapter()
getWrappedAdapter in interface android.widget.WrapperListAdapter