# WearableListView.GenericAdapter

Summary:[Ctors](https://developer.android.com/reference/android/support/wearable/view/WearableListView.GenericAdapter#pubctors)\|[Inherited Methods](https://developer.android.com/reference/android/support/wearable/view/WearableListView.GenericAdapter#inhmethods)  

# WearableListView.GenericAdapter

`
public
static

abstract
class
WearableListView.GenericAdapter
`  
`


``

extends Adapter<T extends `[WearableListView.ViewHolder](https://developer.android.com/reference/android/support/wearable/view/WearableListView.ViewHolder.html)`>


``


`

|---|---|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)                                                                                                                                                                    |||
| ↳ | android.support.v7.widget.RecyclerView.Adapter\<T extends[android.support.wearable.view.WearableListView.ViewHolder](https://developer.android.com/reference/android/support/wearable/view/WearableListView.ViewHolder.html)\>                   ||
|   | ↳ | android.support.wearable.view.WearableListView.GenericAdapter\<T extends[android.support.wearable.view.WearableListView.ViewHolder](https://developer.android.com/reference/android/support/wearable/view/WearableListView.ViewHolder.html)\> |

<br />

*** ** * ** ***

<br />

**This class is deprecated.**   
for centering and snapping your list items consider using the[WearableRecyclerView](https://developer.android.com/reference/android/support/wearable/view/WearableRecyclerView.html)supported by a[SnapHelper](https://developer.android.com/reference/android/support/v7/widget/SnapHelper.html)or the[LinearSnapHelper](https://developer.android.com/reference/android/support/v7/widget/LinearSnapHelper.html). For scaling and otherwise modifying the list items based on their location on the screen consider using an[WearableRecyclerView.ChildLayoutManager](https://developer.android.com/reference/android/support/wearable/view/WearableRecyclerView.ChildLayoutManager.html)or the[CurvedChildLayoutManager](https://developer.android.com/reference/android/support/wearable/view/CurvedChildLayoutManager.html).

Base class for adapters providing data for the WearableListView supporting generics. For details refer to[RecyclerView.Adapter](https://developer.android.com/reference/android/support/v7/widget/RecyclerView.Adapter.html).

## Summary

|                                                                 ### Public constructors                                                                  ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| ` `[GenericAdapter](https://developer.android.com/reference/android/support/wearable/view/WearableListView.GenericAdapter.html#GenericAdapter())`() ` |

| ### Inherited methods |
|-----------------------|---|
| From class` android.support.v7.widget.RecyclerView.Adapter ` |------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` final void`                                        | ` bindViewHolder(VH arg0, int arg1) `                                                                                                                                                        | | ` final VH`                                          | ` createViewHolder(`[ViewGroup](http://developer.android.com/reference/android/view/ViewGroup.html)` arg0, int arg1) `                                                                       | | ` int`                                               | ` findRelativeAdapterPositionIn(Adapter<? extends RecyclerView.ViewHolder> arg0, RecyclerView.ViewHolder arg1, int arg2) `                                                                   | | ` abstract int`                                      | ` getItemCount() `                                                                                                                                                                           | | ` long`                                              | ` getItemId(int arg0) `                                                                                                                                                                      | | ` int`                                               | ` getItemViewType(int arg0) `                                                                                                                                                                | | ` final RecyclerView.Adapter.StateRestorationPolicy` | ` getStateRestorationPolicy() `                                                                                                                                                              | | ` final boolean`                                     | ` hasObservers() `                                                                                                                                                                           | | ` final boolean`                                     | ` hasStableIds() `                                                                                                                                                                           | | ` final void`                                        | ` notifyDataSetChanged() `                                                                                                                                                                   | | ` final void`                                        | ` notifyItemChanged(int arg0, `[Object](http://developer.android.com/reference/java/lang/Object.html)` arg1) `                                                                               | | ` final void`                                        | ` notifyItemChanged(int arg0) `                                                                                                                                                              | | ` final void`                                        | ` notifyItemInserted(int arg0) `                                                                                                                                                             | | ` final void`                                        | ` notifyItemMoved(int arg0, int arg1) `                                                                                                                                                      | | ` final void`                                        | ` notifyItemRangeChanged(int arg0, int arg1, `[Object](http://developer.android.com/reference/java/lang/Object.html)` arg2) `                                                                | | ` final void`                                        | ` notifyItemRangeChanged(int arg0, int arg1) `                                                                                                                                               | | ` final void`                                        | ` notifyItemRangeInserted(int arg0, int arg1) `                                                                                                                                              | | ` final void`                                        | ` notifyItemRangeRemoved(int arg0, int arg1) `                                                                                                                                               | | ` final void`                                        | ` notifyItemRemoved(int arg0) `                                                                                                                                                              | | ` void`                                              | ` onAttachedToRecyclerView(RecyclerView arg0) `                                                                                                                                              | | ` abstract void`                                     | ` onBindViewHolder(VH arg0, int arg1) `                                                                                                                                                      | | ` void`                                              | ` onBindViewHolder(VH arg0, int arg1, `[List](http://developer.android.com/reference/java/util/List.html)`<`[Object](http://developer.android.com/reference/java/lang/Object.html)`> arg2) ` | | ` abstract VH`                                       | ` onCreateViewHolder(`[ViewGroup](http://developer.android.com/reference/android/view/ViewGroup.html)` arg0, int arg1) `                                                                     | | ` void`                                              | ` onDetachedFromRecyclerView(RecyclerView arg0) `                                                                                                                                            | | ` boolean`                                           | ` onFailedToRecycleView(VH arg0) `                                                                                                                                                           | | ` void`                                              | ` onViewAttachedToWindow(VH arg0) `                                                                                                                                                          | | ` void`                                              | ` onViewDetachedFromWindow(VH arg0) `                                                                                                                                                        | | ` void`                                              | ` onViewRecycled(VH arg0) `                                                                                                                                                                  | | ` void`                                              | ` registerAdapterDataObserver(RecyclerView.AdapterDataObserver arg0) `                                                                                                                       | | ` void`                                              | ` setHasStableIds(boolean arg0) `                                                                                                                                                            | | ` void`                                              | ` setStateRestorationPolicy(RecyclerView.Adapter.StateRestorationPolicy arg0) `                                                                                                              | | ` void`                                              | ` unregisterAdapterDataObserver(RecyclerView.AdapterDataObserver arg0) `                                                                                                                     | ||
| From class` `[java.lang.Object](http://developer.android.com/reference/java/lang/Object.html)` ` |------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------| | ` `[Object](http://developer.android.com/reference/java/lang/Object.html)          | ` clone() `                                                                               | | ` boolean`                                                                         | ` equals(`[Object](http://developer.android.com/reference/java/lang/Object.html)` arg0) ` | | ` void`                                                                            | ` finalize() `                                                                            | | ` final `[Class](http://developer.android.com/reference/java/lang/Class.html)`<?>` | ` getClass() `                                                                            | | ` int`                                                                             | ` hashCode() `                                                                            | | ` final void`                                                                      | ` notify() `                                                                              | | ` final void`                                                                      | ` notifyAll() `                                                                           | | ` `[String](http://developer.android.com/reference/java/lang/String.html)          | ` toString() `                                                                            | | ` final void`                                                                      | ` wait(long arg0, int arg1) `                                                             | | ` final void`                                                                      | ` wait(long arg0) `                                                                       | | ` final void`                                                                      | ` wait() `                                                                                | ||

## Public constructors

### GenericAdapter

```
public GenericAdapter ()
```

<br />

<br />