{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}
public static class DpSize.Companion
static final @NonNull DpSize
getUnspecified()
A size whose width and height are unspecified.
width
height
getZero()
A DpSize with 0 DP width and 0 DP height values.
DpSize
public static final @NonNull DpSize getUnspecified()
A size whose width and height are unspecified. This is usually a replacement for null when a primitive value is desired. Access to width or height on an unspecified size is not allowed.
null
public static final @NonNull DpSize getZero()