Class MembersViewHolder


  • public class MembersViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    The ViewHolder for Members list that contains the views for the list and sets the action for the onClick as well
    • Constructor Summary

      Constructors 
      Constructor Description
      MembersViewHolder​(android.view.View itemView)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Member member)
      Method to bind the Member to the current view
      void setAllStatus()
      Set the connection status when member state is for all
      void setConnectedStatus()
      Set the connection status to connected state
      void setPlaceHolder​(int placeHolder)
      Set the default placeholder for avatars with no image loaded
      void setRequestedStatus()
      Set the connection status to requested state
      • 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

      • avatar

        public android.widget.ImageView avatar
      • avatarContainer

        public android.view.View avatarContainer
      • placeholderAvatarText

        public android.widget.TextView placeholderAvatarText
      • nameTextView

        public android.widget.TextView nameTextView
      • companyTextView

        public android.widget.TextView companyTextView
      • connectionStatusIcon

        public android.widget.ImageView connectionStatusIcon
      • container

        public android.view.View container
    • Constructor Detail

      • MembersViewHolder

        public MembersViewHolder​(android.view.View itemView)
    • Method Detail

      • setPlaceHolder

        public void setPlaceHolder​(@DrawableRes
                                   int placeHolder)
        Set the default placeholder for avatars with no image loaded
        Parameters:
        placeHolder - default placeholder
      • bind

        public void bind​(Member member)
        Method to bind the Member to the current view
        Parameters:
        member - the Member to display
      • setConnectedStatus

        public void setConnectedStatus()
        Set the connection status to connected state
      • setRequestedStatus

        public void setRequestedStatus()
        Set the connection status to requested state
      • setAllStatus

        public void setAllStatus()
        Set the connection status when member state is for all