Class SimpleViewHolder

  • All Implemented Interfaces:

    
    public final class SimpleViewHolder
    
                        

    A simple data holder class that stores a view and its associated friendly views.

    This class is used to group a main view with a list of friendly views that should be considered when performing visibility tracking. Friendly views are typically views that should not be considered as obstructions when determining if the main view is visible.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final View getView() The main View to be tracked for visibility.
      final List<View> getFriendlyViews() A list of View objects that are considered friendly (non-obstructing) when performing visibility calculations for the main view.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SimpleViewHolder

        SimpleViewHolder(View view, List<View> friendlyViews)
    • Method Detail

      • getFriendlyViews

         final List<View> getFriendlyViews()

        A list of View objects that are considered friendly (non-obstructing) when performing visibility calculations for the main view.