public abstract class BaseSwipeAdapter extends android.widget.BaseAdapter implements SwipeItemMangerInterface, SwipeAdapterInterface
| 限定符和类型 | 字段和说明 |
|---|---|
protected SwipeItemAdapterMangerImpl |
mItemManger |
| 构造器和说明 |
|---|
BaseSwipeAdapter() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
closeAllExcept(SwipeLayout layout) |
void |
closeAllItems() |
void |
closeItem(int position) |
abstract void |
fillValues(int position,
android.view.View convertView)
fill values or bind listeners to the view.
|
abstract android.view.View |
generateView(int position,
android.view.ViewGroup parent)
generate a new view item.
|
Attributes.Mode |
getMode() |
java.util.List<java.lang.Integer> |
getOpenItems() |
java.util.List<SwipeLayout> |
getOpenLayouts() |
abstract int |
getSwipeLayoutResourceId(int position)
return the
SwipeLayout resource id, int the view item. |
android.view.View |
getView(int position,
android.view.View convertView,
android.view.ViewGroup parent) |
boolean |
isOpen(int position) |
void |
openItem(int position) |
void |
removeShownLayouts(SwipeLayout layout) |
void |
setMode(Attributes.Mode mode) |
areAllItemsEnabled, getDropDownView, getItemViewType, getViewTypeCount, hasStableIds, isEmpty, isEnabled, notifyDataSetChanged, notifyDataSetInvalidated, registerDataSetObserver, unregisterDataSetObserverprotected SwipeItemAdapterMangerImpl mItemManger
public abstract int getSwipeLayoutResourceId(int position)
SwipeLayout resource id, int the view item.getSwipeLayoutResourceId 在接口中 SwipeAdapterInterfaceposition - public abstract android.view.View generateView(int position,
android.view.ViewGroup parent)
fillValues method.position - parent - public abstract void fillValues(int position,
android.view.View convertView)
position - convertView - public final android.view.View getView(int position,
android.view.View convertView,
android.view.ViewGroup parent)
getView 在接口中 android.widget.Adapterpublic void openItem(int position)
openItem 在接口中 SwipeItemMangerInterfacepublic void closeItem(int position)
closeItem 在接口中 SwipeItemMangerInterfacepublic void closeAllExcept(SwipeLayout layout)
closeAllExcept 在接口中 SwipeItemMangerInterfacepublic void closeAllItems()
closeAllItems 在接口中 SwipeItemMangerInterfacepublic java.util.List<java.lang.Integer> getOpenItems()
getOpenItems 在接口中 SwipeItemMangerInterfacepublic java.util.List<SwipeLayout> getOpenLayouts()
getOpenLayouts 在接口中 SwipeItemMangerInterfacepublic void removeShownLayouts(SwipeLayout layout)
removeShownLayouts 在接口中 SwipeItemMangerInterfacepublic boolean isOpen(int position)
isOpen 在接口中 SwipeItemMangerInterfacepublic Attributes.Mode getMode()
getMode 在接口中 SwipeItemMangerInterfacepublic void setMode(Attributes.Mode mode)
setMode 在接口中 SwipeItemMangerInterface