Class WindowManager.LayoutParams

java.lang.Object
icyllis.modernui.view.ViewGroup.LayoutParams
icyllis.modernui.view.WindowManager.LayoutParams
Enclosing interface:
WindowManager

public static class WindowManager.LayoutParams extends ViewGroup.LayoutParams
  • Field Details

    • x

      public int x
      X position for this window. With the default gravity it is ignored. When using Gravity.LEFT or Gravity.START or Gravity.RIGHT or Gravity.END it provides an offset from the given edge.
    • y

      public int y
      Y position for this window. With the default gravity it is ignored. When using Gravity.TOP or Gravity.BOTTOM it provides an offset from the given edge.
    • horizontalWeight

      public float horizontalWeight
      Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.
    • verticalWeight

      public float verticalWeight
      Indicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams. Specify 0 if the view should not be stretched. Otherwise the extra pixels will be pro-rated among all views whose weight is greater than 0.
    • type

      public int type
    • FIRST_APPLICATION_WINDOW

      public static final int FIRST_APPLICATION_WINDOW
      See Also:
    • TYPE_BASE_APPLICATION

      public static final int TYPE_BASE_APPLICATION
      See Also:
    • LAST_APPLICATION_WINDOW

      public static final int LAST_APPLICATION_WINDOW
      See Also:
    • FIRST_SUB_WINDOW

      public static final int FIRST_SUB_WINDOW
      See Also:
    • TYPE_APPLICATION_PANEL

      public static final int TYPE_APPLICATION_PANEL
      See Also:
    • TYPE_APPLICATION_SUB_PANEL

      public static final int TYPE_APPLICATION_SUB_PANEL
      See Also:
    • TYPE_APPLICATION_ABOVE_SUB_PANEL

      @Internal public static final int TYPE_APPLICATION_ABOVE_SUB_PANEL
      See Also:
    • LAST_SUB_WINDOW

      public static final int LAST_SUB_WINDOW
      See Also:
    • FIRST_SYSTEM_WINDOW

      public static final int FIRST_SYSTEM_WINDOW
      See Also:
    • TYPE_TOAST

      @Internal public static final int TYPE_TOAST
      See Also:
    • LAST_SYSTEM_WINDOW

      public static final int LAST_SYSTEM_WINDOW
      See Also:
    • FLAG_NOT_FOCUSABLE

      public static final int FLAG_NOT_FOCUSABLE
      See Also:
    • FLAG_NOT_TOUCH_MODAL

      public static final int FLAG_NOT_TOUCH_MODAL
      See Also:
    • flags

      public int flags
    • gravity

      public int gravity
    • horizontalMargin

      public float horizontalMargin
    • verticalMargin

      public float verticalMargin
  • Constructor Details

    • LayoutParams

      public LayoutParams()
  • Method Details

    • isModal

      @Internal public boolean isModal()
      True if the window should consume all pointer events itself, regardless of whether they are inside of the window. If the window is modal, its touchable region will expand to the size of its task.