Package icyllis.modernui.view
Class WindowManager.LayoutParams
java.lang.Object
icyllis.modernui.view.ViewGroup.LayoutParams
icyllis.modernui.view.WindowManager.LayoutParams
- Enclosing interface:
WindowManager
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
int
int
float
float
Indicates how much of the extra space will be allocated horizontally to the view associated with these LayoutParams.static final int
static final int
static final int
int
static final int
static final int
static final int
static final int
static final int
float
float
Indicates how much of the extra space will be allocated vertically to the view associated with these LayoutParams.int
X position for this window.int
Y position for this window.Fields inherited from class icyllis.modernui.view.ViewGroup.LayoutParams
height, MATCH_PARENT, width, WRAP_CONTENT
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
isModal()
True if the window should consume all pointer events itself, regardless of whether they are inside of the window.Methods inherited from class icyllis.modernui.view.ViewGroup.LayoutParams
resolveLayoutDirection
-
Field Details
-
x
public int xX position for this window. With the default gravity it is ignored. When usingGravity.LEFT
orGravity.START
orGravity.RIGHT
orGravity.END
it provides an offset from the given edge. -
y
public int yY position for this window. With the default gravity it is ignored. When usingGravity.TOP
orGravity.BOTTOM
it provides an offset from the given edge. -
horizontalWeight
public float horizontalWeightIndicates 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 verticalWeightIndicates 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.
-