Methods Summary |
---|
public abstract void | bindView(android.view.View view, E item)
|
public int | getCount()
return mList != null ? mList.size() : 0;
|
public java.lang.Object | getItem(int position)
return position;
|
public long | getItemId(int position)
return position;
|
public android.view.View | getView(int position, android.view.View convertView, android.view.ViewGroup parent)
View view;
if (convertView == null) {
view = mInflater.inflate(mLayoutRes, parent, false);
} else {
view = convertView;
}
bindView(view, mList.get(position));
return view;
|
public E | itemForPosition(int position)
if (mList == null) {
return null;
}
return mList.get(position);
|
public void | setSource(java.util.List list)
mList = list;
|