Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
    
  
  
  
  
    
    
    
  
  
    
    
  
  
WearableListView.ViewHolder
  public
  static
  
  
  class
  WearableListView.ViewHolder
  
  
  
  
    extends RecyclerView.ViewHolder
  
  
  
  
  
  
  
    
    | java.lang.Object | 
  
  
    
      | ↳ | android.support.v7.widget.RecyclerView.ViewHolder | 
  
  
    
      |  | ↳ | android.support.wearable.view.WearableListView.ViewHolder | 
  
  
    
  
      This class is deprecated.
    for centering and snapping your list items consider using the WearableRecyclerView supported by a SnapHelper or the LinearSnapHelper.
     For scaling and otherwise modifying the list items based on their location on the screen
     consider using an WearableRecyclerView.ChildLayoutManager or the CurvedChildLayoutManager.
  
  Wrapper around items displayed in the list view. WearableListView.Adapter must return objects that are
 instances of this class. Consider making the wrapped View implement WearableListView.OnCenterProximityListener 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 | 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 | 
      toString()
       |  | 
| 
    From class
      
        
          java.lang.Object
        
      
      
  
  
  
    | 
        
        
        
        
        
        Object | 
      clone()
       |  
  
  
    | 
        
        
        
        
        
        boolean | 
      equals(Object arg0)
       |  
  
  
    | 
        
        
        
        
        
        void | 
      finalize()
       |  
  
  
    | 
        
        
        
        final
        
        Class<?> | 
      getClass()
       |  
  
  
    | 
        
        
        
        
        
        int | 
      hashCode()
       |  
  
  
    | 
        
        
        
        final
        
        void | 
      notify()
       |  
  
  
    | 
        
        
        
        final
        
        void | 
      notifyAll()
       |  
  
  
    | 
        
        
        
        
        
        String | 
      toString()
       |  
  
  
    | 
        
        
        
        final
        
        void | 
      wait(long arg0, int arg1)
       |  
  
  
    | 
        
        
        
        final
        
        void | 
      wait(long arg0)
       |  
  
  
    | 
        
        
        
        final
        
        void | 
      wait()
       |  | 
Public constructors
    ViewHolder
    
public ViewHolder (View itemView)
    
    
    
  
    
 
 
 
  
  
    
  
 
  
    
      
      
    
    
      
    
    
  
       
    
    
      
    
  
  
  Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
  Last updated 2025-02-10 UTC.
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[]]