Class TestFragment.TestLinearLayout

All Implemented Interfaces:
Drawable.Callback, ViewManager, ViewParent
Enclosing class:
TestFragment

public static class TestFragment.TestLinearLayout extends LinearLayout
  • Constructor Details

    • TestLinearLayout

      public TestLinearLayout(Context context)
  • Method Details

    • onDetachedFromWindow

      protected void onDetachedFromWindow()
      Description copied from class: View
      This is called when the view is detached from a window. At this point it no longer has a surface for drawing.
      Overrides:
      onDetachedFromWindow in class View
      See Also:
    • onDraw

      protected void onDraw(@Nonnull Canvas canvas)
      Description copied from class: View
      Draw the content of this view, implement this to do your drawing.

      Note that (0, 0) will be the top left of the bounds, and (width, height) will be the bottom right of the bounds.

      Overrides:
      onDraw in class LinearLayout
      Parameters:
      canvas - the canvas to draw content
    • onMousePressed

      protected boolean onMousePressed(double mouseX, double mouseY, int mouseButton)
    • onMouseReleased

      protected boolean onMouseReleased(double mouseX, double mouseY, int mouseButton)
    • tick

      public void tick()