# WearableListView.ViewHolder

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

# WearableListView.ViewHolder

`
public
static


class
WearableListView.ViewHolder
`  
`


``

extends RecyclerView.ViewHolder


``


`

|---|---|-----------------------------------------------------------|
| [java.lang.Object](http://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | android.support.v7.widget.RecyclerView.ViewHolder            ||
|   | ↳ | android.support.wearable.view.WearableListView.ViewHolder |

<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).

Wrapper around items displayed in the list view.[WearableListView.Adapter](https://developer.android.com/reference/android/support/wearable/view/WearableListView.Adapter.html)must return objects that are instances of this class. Consider making the wrapped View implement[WearableListView.OnCenterProximityListener](https://developer.android.com/reference/android/support/wearable/view/WearableListView.OnCenterProximityListener.html)if you want to receive a callback when it becomes or ceases to be the central item in the WearableListView.

## Summary

|                                                                                                                                   ### Inherited fields                                                                                                                                    |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From class`android.support.v7.widget.RecyclerView.ViewHolder` |---------------------------------------------------------------------------------------|-------------------| | ` public final `[View](http://developer.android.com/reference/android/view/View.html) | `itemView` <br /> | |

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

| ### Inherited methods |
|-----------------------|---|
| From class` android.support.v7.widget.RecyclerView.ViewHolder ` |---------------------------------------------------------------------------|-----------------------------------| | ` final int`                                                              | ` getAbsoluteAdapterPosition() `  | | ` final int`                                                              | ` getAdapterPosition() `          | | ` final Adapter<? extends RecyclerView.ViewHolder>`                       | ` getBindingAdapter() `           | | ` final int`                                                              | ` getBindingAdapterPosition() `   | | ` final long`                                                             | ` getItemId() `                   | | ` final int`                                                              | ` getItemViewType() `             | | ` final int`                                                              | ` getLayoutPosition() `           | | ` final int`                                                              | ` getOldPosition() `              | | ` final int`                                                              | ` getPosition() `                 | | ` final boolean`                                                          | ` isRecyclable() `                | | ` final void`                                                             | ` setIsRecyclable(boolean arg0) ` | | ` `[String](http://developer.android.com/reference/java/lang/String.html) | ` toString() `                    | ||
| 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

### ViewHolder

```
public ViewHolder (View itemView)
```

<br />

<br />

|        Parameters         ||
|------------|---------------|
| `itemView` | `View` <br /> |