Package 

Class ViewGroupDrawingOrderHelper

    • Method Summary

      Modifier and Type Method Description
      void handleAddView(View view) This should be called every time a view is added to the ViewGroup in addView.
      void handleRemoveView(View view) This should be called every time a view is removed from the ViewGroup in and removeViewAt.
      boolean shouldEnableCustomDrawingOrder() If the ViewGroup should enable drawing order.
      int getChildDrawingOrder(int childCount, int index) The index of the child view that should be drawn.
      void update() Recheck all children for z-index changes.
      • Methods inherited from class java.lang.Object

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

      • ViewGroupDrawingOrderHelper

        ViewGroupDrawingOrderHelper(ViewGroup viewGroup)
    • Method Detail

      • handleAddView

         void handleAddView(View view)

        This should be called every time a view is added to the ViewGroup in addView.

        Parameters:
        view - The view that is being added
      • handleRemoveView

         void handleRemoveView(View view)

        This should be called every time a view is removed from the ViewGroup in and removeViewAt.

        Parameters:
        view - The view that is being removed.
      • shouldEnableCustomDrawingOrder

         boolean shouldEnableCustomDrawingOrder()

        If the ViewGroup should enable drawing order. ViewGroups should call with the value returned from this method when a viewis added or removed.

      • getChildDrawingOrder

         int getChildDrawingOrder(int childCount, int index)

        The index of the child view that should be drawn. This should be used in .

      • update

         void update()

        Recheck all children for z-index changes.