LayoutElementBuilders.FontStyles


public final class LayoutElementBuilders.FontStyles


Font styles, currently set up to match Wear's font styling.

Summary

Public methods

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_BODY1 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_BODY2 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_BUTTON on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_CAPTION1 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_CAPTION2 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_DISPLAY1 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_DISPLAY2 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_DISPLAY3 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_TITLE1 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_TITLE2 on Material androidx.wear.protolayout.material.Text.

static @NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use TYPOGRAPHY_TITLE3 on Material androidx.wear.protolayout.material.Text.

Public methods

body1

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder body1(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for large body text.

body2

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder body2(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for medium body text.

button

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder button(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for button text.

caption1

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder caption1(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for large caption text.

caption2

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder caption2(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for medium caption text.

display1

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder display1(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for large display text.

display2

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder display2(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for medium display text.

display3

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder display3(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for small display text.

title1

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder title1(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for large title text.

title2

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder title2(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for medium title text.

title3

Added in 1.0.0
Deprecated in 1.0.0
public static @NonNull LayoutElementBuilders.FontStyle.Builder title3(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for small title text.