public class XUISimpleAdapter extends BaseListAdapter<AdapterItem,ViewHolder>
| Constructor and Description |
|---|
XUISimpleAdapter(android.content.Context context) |
XUISimpleAdapter(android.content.Context context,
AdapterItem[] data) |
XUISimpleAdapter(android.content.Context context,
java.util.List<AdapterItem> data) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
convert(ViewHolder holder,
AdapterItem item,
int position)
转换布局
|
static XUISimpleAdapter |
create(android.content.Context context,
java.util.List<java.lang.String> data)
创建简单的适配器【不含图标】
|
static XUISimpleAdapter |
create(android.content.Context context,
java.lang.String[] data)
创建简单的适配器【不含图标】
|
protected int |
getLayoutId()
获取适配的布局ID
|
protected ViewHolder |
newViewHolder(android.view.View convertView)
创建ViewHolder
|
XUISimpleAdapter |
setPaddingLeftDp(int paddingLeftDp) |
XUISimpleAdapter |
setPaddingLeftPx(int paddingLeftPx) |
getViewaddData, addData, addData, addElement, clearData, clearNotNotify, getColor, getContext, getCount, getDrawable, getItem, getItemId, getItems, getOnListItemListener, getSize, getString, gone, inVisible, removeElement, removeElement, removeElements, removeElements, setData, setData, setOnListItemListener, translateData, updateElement, visibleareAllItemsEnabled, getAutofillOptions, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, setAutofillOptions, unregisterDataSetObserverpublic XUISimpleAdapter(android.content.Context context)
public XUISimpleAdapter(android.content.Context context,
java.util.List<AdapterItem> data)
public XUISimpleAdapter(android.content.Context context,
AdapterItem[] data)
protected ViewHolder newViewHolder(android.view.View convertView)
BaseListAdapternewViewHolder in class BaseListAdapter<AdapterItem,ViewHolder>protected int getLayoutId()
BaseListAdaptergetLayoutId in class BaseListAdapter<AdapterItem,ViewHolder>protected void convert(ViewHolder holder, AdapterItem item, int position)
BaseListAdapterconvert in class BaseListAdapter<AdapterItem,ViewHolder>public XUISimpleAdapter setPaddingLeftPx(int paddingLeftPx)
public XUISimpleAdapter setPaddingLeftDp(int paddingLeftDp)
public static XUISimpleAdapter create(android.content.Context context, java.lang.String[] data)
context - data - public static XUISimpleAdapter create(android.content.Context context, java.util.List<java.lang.String> data)
context - data -