Class PreferencesViewHolder

  • Direct Known Subclasses:
    PreferenceSwitchViewHolder

    public class PreferencesViewHolder
    extends androidx.recyclerview.widget.RecyclerView.ViewHolder
    The View Holder for the list of Preferences Contains all the views to be displayed on each list item and display image if there is an image
    • Field Summary

      Fields 
      Modifier and Type Field Description
      android.widget.TextView preferencesEditText  
      android.widget.TextView preferencesLabel  
      • Fields inherited from class androidx.recyclerview.widget.RecyclerView.ViewHolder

        itemView
    • Constructor Summary

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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void bind​(Preference preference)
      Populate views using Preference
      • 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

      • preferencesLabel

        public android.widget.TextView preferencesLabel
      • preferencesEditText

        public android.widget.TextView preferencesEditText
    • Constructor Detail

      • PreferencesViewHolder

        public PreferencesViewHolder​(android.view.View itemView)