Constructor and Description |
---|
LayoutMeasureUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getHeight(Layout layout)
Prior to version 20, If the Layout specifies extra space between lines (either by spacingmult
or spacingadd) the StaticLayout would erroneously add this space after the last line as well.
|
static int |
getWidth(Layout layout)
Returns the width of the layout.
|
public static int getWidth(Layout layout)
layout
- The layoutpublic static int getHeight(Layout layout)
layout
- The layout