public static final class ActivityInfo.WindowLayout extends Object
Modifier and Type | Field and Description |
---|---|
int |
gravity
Gravity of activity.
|
int |
height
Height of activity in pixels.
|
float |
heightFraction
Height of activity as a fraction of available display height.
|
int |
minHeight
Minimal height of activity in pixels to be able to display its content.
|
int |
minWidth
Minimal width of activity in pixels to be able to display its content.
|
int |
width
Width of activity in pixels.
|
float |
widthFraction
Width of activity as a fraction of available display width.
|
Constructor and Description |
---|
WindowLayout(int width,
float widthFraction,
int height,
float heightFraction,
int gravity,
int minWidth,
int minHeight) |
public final int width
public final float widthFraction
width
and this value are set this one will be preferred.public final int height
public final float heightFraction
height
and this value are set this one will be preferred.public final int gravity
Gravity.TOP
, Gravity.BOTTOM
,
Gravity.LEFT
and Gravity.RIGHT
are supported.public final int minWidth
NOTE: A task's root activity value is applied to all additional activities launched in the task. That is if the root activity of a task set minimal width, then the system will set the same minimal width on all other activities in the task. It will also ignore any other minimal width attributes of non-root activities.
public final int minHeight
NOTE: A task's root activity value is applied to all additional activities launched in the task. That is if the root activity of a task set minimal height, then the system will set the same minimal height on all other activities in the task. It will also ignore any other minimal height attributes of non-root activities.