LayoutElementBuilders.FontStyles

public class LayoutElementBuilders.FontStyles


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

Summary

Public methods

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use body1 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for large body text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use body2 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for medium body text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use button instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for button text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use caption1 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for large caption text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use caption2 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for medium caption text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use display1 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for large display text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use display2 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for medium display text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use display3 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for small display text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use title1 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for large title text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use title2 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for medium title text.

@NonNull LayoutElementBuilders.FontStyle.Builder

This method is deprecated.

Use title3 instead.

static @NonNull LayoutElementBuilders.FontStyle.Builder

Font style for small title text.

static @NonNull LayoutElementBuilders.FontStyles

This method is deprecated.

Use static functions, accepting a DeviceParameters instance instead (e.g.

Public methods

body1

@NonNull
public LayoutElementBuilders.FontStyle.Builder body1()

Font style for large body text.

body1

@NonNull
public static LayoutElementBuilders.FontStyle.Builder body1(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for large body text.

body2

@NonNull
public LayoutElementBuilders.FontStyle.Builder body2()

Font style for medium body text.

body2

@NonNull
public static LayoutElementBuilders.FontStyle.Builder body2(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for medium body text.

button

@NonNull
public LayoutElementBuilders.FontStyle.Builder button()

Font style for button text.

button

@NonNull
public static LayoutElementBuilders.FontStyle.Builder button(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for button text.

caption1

@NonNull
public LayoutElementBuilders.FontStyle.Builder caption1()

Font style for large caption text.

caption1

@NonNull
public static LayoutElementBuilders.FontStyle.Builder caption1(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for large caption text.

caption2

@NonNull
public LayoutElementBuilders.FontStyle.Builder caption2()

Font style for medium caption text.

caption2

@NonNull
public static LayoutElementBuilders.FontStyle.Builder caption2(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for medium caption text.

display1

@NonNull
public LayoutElementBuilders.FontStyle.Builder display1()

Font style for large display text.

display1

@NonNull
public static LayoutElementBuilders.FontStyle.Builder display1(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for large display text.

display2

@NonNull
public LayoutElementBuilders.FontStyle.Builder display2()

Font style for medium display text.

display2

@NonNull
public static LayoutElementBuilders.FontStyle.Builder display2(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for medium display text.

display3

@NonNull
public LayoutElementBuilders.FontStyle.Builder display3()

Font style for small display text.

display3

@NonNull
public static LayoutElementBuilders.FontStyle.Builder display3(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for small display text.

title1

@NonNull
public LayoutElementBuilders.FontStyle.Builder title1()

Font style for large title text.

title1

@NonNull
public static LayoutElementBuilders.FontStyle.Builder title1(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for large title text.

title2

@NonNull
public LayoutElementBuilders.FontStyle.Builder title2()

Font style for medium title text.

title2

@NonNull
public static LayoutElementBuilders.FontStyle.Builder title2(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for medium title text.

title3

@NonNull
public LayoutElementBuilders.FontStyle.Builder title3()

Font style for small title text.

title3

@NonNull
public static LayoutElementBuilders.FontStyle.Builder title3(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Font style for small title text.

withDeviceParameters

@NonNull
public static LayoutElementBuilders.FontStyles withDeviceParameters(
    @NonNull DeviceParametersBuilders.DeviceParameters deviceParameters
)

Create a FontStyles instance, using the given device parameters to determine font sizes.