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

WindowWidthSizeClass

value public final class WindowWidthSizeClass implements Comparable


Width-based window size class.

A window size class represents a breakpoint that can be used to build responsive layouts. Each window size class breakpoint represents a majority case for typical device scenarios so your layouts will work well on most devices and configurations.

For more details see Window size classes documentation.

Summary

Nested types

public static class WindowWidthSizeClass.Companion

Public methods

int
@NonNull String

Public methods

compareTo

public int compareTo(@NonNull WindowWidthSizeClass other)

toString

public @NonNull String toString()