{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

DpSize.Companion

public static class DpSize.Companion


Summary

Public methods

static final @NonNull DpSize

A size whose width and height are unspecified.

static final @NonNull DpSize

A DpSize with 0 DP width and 0 DP height values.

Public methods

getUnspecified

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.

getZero

public static final @NonNull DpSize getZero()

A DpSize with 0 DP width and 0 DP height values.