Interface AdListAdapter
- All Superinterfaces:
Adapter, ListAdapter, WrapperListAdapter
A ListAdapter that wraps another ListAdapter and injects ads.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface that allows you to create a custom view for use inAdListAdapterand.invalid reference
AdRecyclerAdapter -
Field Summary
Fields inherited from interface Adapter
IGNORE_ITEM_VIEW_TYPE, NO_SELECTION -
Method Summary
Modifier and TypeMethodDescriptionintgetItemPosition(int position) Calculates the position in the wrapped adapter based on the position in this adapter.Methods inherited from interface Adapter
getAutofillOptions, getCount, getItem, getItemId, getItemViewType, getView, getViewTypeCount, hasStableIds, isEmpty, registerDataSetObserver, unregisterDataSetObserverMethods inherited from interface ListAdapter
areAllItemsEnabled, isEnabledMethods inherited from interface WrapperListAdapter
getWrappedAdapter
-
Method Details
-
getItemPosition
int getItemPosition(int position) Calculates the position in the wrapped adapter based on the position in this adapter. Returns -1 if position points to an ad.
-