public static class Typography


Class holding typography definitions as defined by the Wear Material3 typography specification.

Summary

Constants

static final int

ArcMedium is for arc headers and titles.

static final int

ArcSmall is for limited arc strings of text.

static final int

BodyExtraSmall is the smallest body.

static final int

BodyLarge is the largest body.

static final int

BodyMedium is second largest body.

static final int

BodySmall is third largest body.

static final int

DisplayLarge is the largest headline.

static final int

DisplayMedium is the second largest headline.

static final int

DisplaySmall is the smallest headline.

static final int

LabelLarge is the largest label.

static final int

LabelMedium is the medium label.

static final int

LabelSmall is the small label.

static final int

NumeralsExtraLarge is the largest role for digits.

static final int

NumeralsExtraSmall is the smallest role for digits.

static final int

NumeralsLarge is the second largest role for digits.

static final int

NumeralsMedium is the third largest role for digits.

static final int

NumeralsSmall is the fourth largest role for digits.

static final int

TitleLarge is the largest title.

static final int

TitleMedium is the medium title.

static final int

TitleSmall is the smallest title.

Public fields

static @NonNull Typography

Constants

ARC_MEDIUM

Added in 1.3.0-alpha03
public static final int ARC_MEDIUM = 0

ArcMedium is for arc headers and titles. Arc is for text along a curved path on the screen, reserved for short header text strings at the very top or bottom of the screen like page titles.

ARC_SMALL

Added in 1.3.0-alpha03
public static final int ARC_SMALL = 1

ArcSmall is for limited arc strings of text. Arc is for text along a curved path on the screen, reserved for short curved text strings at the bottom of the screen.

BODY_EXTRA_SMALL

Added in 1.3.0-alpha03
public static final int BODY_EXTRA_SMALL = 2

BodyExtraSmall is the smallest body. Body texts are typically used for long-form writing as it works well for small text sizes. For longer sections of text, a serif or sans serif typeface is recommended.

BODY_LARGE

Added in 1.3.0-alpha03
public static final int BODY_LARGE = 3

BodyLarge is the largest body. Body texts are typically used for long-form writing as it works well for small text sizes. For longer sections of text, a serif or sans serif typeface is recommended.

BODY_MEDIUM

Added in 1.3.0-alpha03
public static final int BODY_MEDIUM = 4

BodyMedium is second largest body. Body texts are typically used for long-form writing as it works well for small text sizes. For longer sections of text, a serif or sans serif typeface is recommended.

BODY_SMALL

Added in 1.3.0-alpha03
public static final int BODY_SMALL = 5

BodySmall is third largest body. Body texts are typically used for long-form writing as it works well for small text sizes. For longer sections of text, a serif or sans serif typeface is recommended.

DISPLAY_LARGE

Added in 1.3.0-alpha03
public static final int DISPLAY_LARGE = 6

DisplayLarge is the largest headline. Displays are the largest text on the screen, reserved for short, important text.

DISPLAY_MEDIUM

Added in 1.3.0-alpha03
public static final int DISPLAY_MEDIUM = 7

DisplayMedium is the second largest headline. Displays are the largest text on the screen, reserved for short, important text.

DISPLAY_SMALL

Added in 1.3.0-alpha03
public static final int DISPLAY_SMALL = 8

DisplaySmall is the smallest headline. Displays are the largest text on the screen, reserved for short, important text.

LABEL_LARGE

Added in 1.3.0-alpha03
public static final int LABEL_LARGE = 9

LabelLarge is the largest label. They are used for displaying prominent texts like label on title buttons.

LABEL_MEDIUM

Added in 1.3.0-alpha03
public static final int LABEL_MEDIUM = 10

LabelMedium is the medium label. They are used for displaying texts like primary label on buttons.

LABEL_SMALL

Added in 1.3.0-alpha03
public static final int LABEL_SMALL = 11

LabelSmall is the small label. They are used for displaying texts like secondary label on buttons, labels on compact buttons.

NUMERAL_EXTRA_LARGE

Added in 1.3.0-alpha03
public static final int NUMERAL_EXTRA_LARGE = 12

NumeralsExtraLarge is the largest role for digits. Numerals use tabular spacing by default. They highlight and express glanceable numbers that are limited to a two or three characters only, where no localization is required like the charging screen.

NUMERAL_EXTRA_SMALL

Added in 1.3.0-alpha03
public static final int NUMERAL_EXTRA_SMALL = 13

NumeralsExtraSmall is the smallest role for digits. Numerals use tabular spacing by default. They are for numbers that need to accommodate longer strings of digits, where no localization is required like in-workout metrics.

NUMERAL_LARGE

Added in 1.3.0-alpha03
public static final int NUMERAL_LARGE = 14

NumeralsLarge is the second largest role for digits. Numerals use tabular spacing by default. They are large sized number strings that are limited to big displays of time, where no localization is required like a timer countdown.

NUMERAL_MEDIUM

Added in 1.3.0-alpha03
public static final int NUMERAL_MEDIUM = 15

NumeralsMedium is the third largest role for digits. Numerals use tabular spacing by default. They are medium sized numbers that are limited to short strings of digits, where no localization is required like a steps count.

NUMERAL_SMALL

Added in 1.3.0-alpha03
public static final int NUMERAL_SMALL = 16

NumeralsSmall is the fourth largest role for digits. Numerals use tabular spacing by default. They are for numbers that need emphasis at a smaller scale, where no localization is required like date and time pickers.

TITLE_LARGE

Added in 1.3.0-alpha03
public static final int TITLE_LARGE = 17

TitleLarge is the largest title. Titles are smaller than Displays. They are typically reserved for medium-emphasis text that is shorter in length.

TITLE_MEDIUM

Added in 1.3.0-alpha03
public static final int TITLE_MEDIUM = 18

TitleMedium is the medium title. Titles are smaller than Displays. They are typically reserved for medium-emphasis text that is shorter in length.

TITLE_SMALL

Added in 1.3.0-alpha03
public static final int TITLE_SMALL = 19

TitleSmall is the smallest title. Titles are smaller than Displays. They are typically reserved for medium-emphasis text that is shorter in length.

Public fields

INSTANCE

Added in 1.3.0-alpha03
public static @NonNull Typography INSTANCE