Class StaggeredAdapter.ViewHolder

  • Enclosing class:
    StaggeredAdapter

    public static class StaggeredAdapter.ViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    The ViewHolder class holds references to the views that make up the item view.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      com.makeramen.roundedimageview.RoundedImageView staggeredImages  
      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewHolder​(android.view.View itemView)
      Constructs a new ViewHolder with the given View.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(java.lang.String item)
      Binds the data to the views in the ViewHolder.
      • Methods inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        getAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • staggeredImages

        public com.makeramen.roundedimageview.RoundedImageView staggeredImages
    • Constructor Detail

      • ViewHolder

        public ViewHolder​(@NonNull
                          android.view.View itemView)
        Constructs a new ViewHolder with the given View.
        Parameters:
        itemView - The item view to hold.
    • Method Detail

      • bind

        public void bind​(java.lang.String item)
        Binds the data to the views in the ViewHolder.
        Parameters:
        item - The data item to bind.