Package 

Class LayoutHelper


  • 
    public abstract class LayoutHelper
    
                        

    Helper class with properties that match the methods that can be overridden in the internal LinearLayoutManager. This is an abstract class instead of an interface so we can have default values for properties as we need to call super for properties that are not provided (null).

    • Constructor Detail

      • LayoutHelper

        LayoutHelper()
    • Method Detail

      • getCalculateExtraLayoutSpace

         Function2<RecyclerView.State, IntArray, Unit> getCalculateExtraLayoutSpace()

        Calculates the amount of extra space (in pixels) that should be laid out by CalendarLayoutManager and stores the result in extraLayoutSpace. [extraLayoutSpace0] should be used for the extra space at the top in a vertical calendar or left in a horizontal calendar, and extraLayoutSpace1 should be used for the extra space at the bottom in a vertical calendar or right in a horizontal calendar.