public class

RecyclerViewAdapterUtils

extends Object
java.lang.Object
   ↳ com.h6ah4i.android.widget.advrecyclerview.utils.RecyclerViewAdapterUtils

Summary

Public Methods
static RecyclerView getParentRecyclerView(View view)
Gets parent RecyclerView instance.
static View getParentViewHolderItemView(View view)
Gets directly child of RecyclerView (== itemView})
static RecyclerView.ViewHolder getViewHolder(View view)
Gets android.support.v7.widget.RecyclerView.ViewHolder.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static RecyclerView getParentRecyclerView (View view)

Gets parent RecyclerView instance.

Parameters
view Child view of the RecyclerView's item
Returns
  • Parent RecyclerView instance

public static View getParentViewHolderItemView (View view)

Gets directly child of RecyclerView (== itemView})

Parameters
view Child view of the RecyclerView's item
Returns
  • Item view

public static RecyclerView.ViewHolder getViewHolder (View view)

Gets android.support.v7.widget.RecyclerView.ViewHolder.

Parameters
view Child view of the RecyclerView's item
Returns
  • ViewHolder