LayoutElementBuilders.FontStyles

public static class LayoutElementBuilders.FontStyles
extends Object

java.lang.Object
   ↳ androidx.wear.tiles.LayoutElementBuilders.FontStyles


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

Summary

Public methods

static LayoutElementBuilders.FontStyle.Builder body1(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for large body text.

LayoutElementBuilders.FontStyle.Builder body1()

This method is deprecated. Use body1(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder body2(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for medium body text.

LayoutElementBuilders.FontStyle.Builder body2()

This method is deprecated. Use body2(DeviceParameters) instead.

LayoutElementBuilders.FontStyle.Builder button()

This method is deprecated. Use button(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder button(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for button text.

LayoutElementBuilders.FontStyle.Builder caption1()

This method is deprecated. Use caption1(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder caption1(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for large caption text.

LayoutElementBuilders.FontStyle.Builder caption2()

This method is deprecated. Use caption2(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder caption2(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for medium caption text.

LayoutElementBuilders.FontStyle.Builder display1()

This method is deprecated. Use display1(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder display1(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for large display text.

LayoutElementBuilders.FontStyle.Builder display2()

This method is deprecated. Use display2(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder display2(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for medium display text.

LayoutElementBuilders.FontStyle.Builder display3()

This method is deprecated. Use display3(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder display3(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for small display text.

LayoutElementBuilders.FontStyle.Builder title1()

This method is deprecated. Use title1(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder title1(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for large title text.

LayoutElementBuilders.FontStyle.Builder title2()

This method is deprecated. Use title2(DeviceParameters) instead.

static LayoutElementBuilders.FontStyle.Builder title2(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for medium title text.

static LayoutElementBuilders.FontStyle.Builder title3(DeviceParametersBuilders.DeviceParameters deviceParameters)

Font style for small title text.

LayoutElementBuilders.FontStyle.Builder title3()

This method is deprecated. Use title3(DeviceParameters) instead.

static LayoutElementBuilders.FontStyles withDeviceParameters(DeviceParametersBuilders.DeviceParameters deviceParameters)

This method is deprecated. Use static functions, accepting a DeviceParametersBuilders.DeviceParameters instance instead (e.g. display1(DeviceParameters)).

Inherited methods

Public methods

body1

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

Font style for large body text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

body1

public LayoutElementBuilders.FontStyle.Builder body1 ()

This method is deprecated.
Use body1(DeviceParameters) instead.

Font style for large body text.

Returns
LayoutElementBuilders.FontStyle.Builder

body2

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

Font style for medium body text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

body2

public LayoutElementBuilders.FontStyle.Builder body2 ()

This method is deprecated.
Use body2(DeviceParameters) instead.

Font style for medium body text.

Returns
LayoutElementBuilders.FontStyle.Builder

button

public LayoutElementBuilders.FontStyle.Builder button ()

This method is deprecated.
Use button(DeviceParameters) instead.

Font style for button text.

Returns
LayoutElementBuilders.FontStyle.Builder

button

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

Font style for button text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

caption1

public LayoutElementBuilders.FontStyle.Builder caption1 ()

This method is deprecated.
Use caption1(DeviceParameters) instead.

Font style for large caption text.

Returns
LayoutElementBuilders.FontStyle.Builder

caption1

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

Font style for large caption text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

caption2

public LayoutElementBuilders.FontStyle.Builder caption2 ()

This method is deprecated.
Use caption2(DeviceParameters) instead.

Font style for medium caption text.

Returns
LayoutElementBuilders.FontStyle.Builder

caption2

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

Font style for medium caption text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

display1

public LayoutElementBuilders.FontStyle.Builder display1 ()

This method is deprecated.
Use display1(DeviceParameters) instead.

Font style for large display text.

Returns
LayoutElementBuilders.FontStyle.Builder

display1

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

Font style for large display text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

display2

public LayoutElementBuilders.FontStyle.Builder display2 ()

This method is deprecated.
Use display2(DeviceParameters) instead.

Font style for medium display text.

Returns
LayoutElementBuilders.FontStyle.Builder

display2

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

Font style for medium display text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

display3

public LayoutElementBuilders.FontStyle.Builder display3 ()

This method is deprecated.
Use display3(DeviceParameters) instead.

Font style for small display text.

Returns
LayoutElementBuilders.FontStyle.Builder

display3

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

Font style for small display text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

title1

public LayoutElementBuilders.FontStyle.Builder title1 ()

This method is deprecated.
Use title1(DeviceParameters) instead.

Font style for large title text.

Returns
LayoutElementBuilders.FontStyle.Builder

title1

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

Font style for large title text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

title2

public LayoutElementBuilders.FontStyle.Builder title2 ()

This method is deprecated.
Use title2(DeviceParameters) instead.

Font style for medium title text.

Returns
LayoutElementBuilders.FontStyle.Builder

title2

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

Font style for medium title text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

title3

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

Font style for small title text.

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyle.Builder

title3

public LayoutElementBuilders.FontStyle.Builder title3 ()

This method is deprecated.
Use title3(DeviceParameters) instead.

Font style for small title text.

Returns
LayoutElementBuilders.FontStyle.Builder

withDeviceParameters

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

This method is deprecated.
Use static functions, accepting a DeviceParametersBuilders.DeviceParameters instance instead (e.g. display1(DeviceParameters)).

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

Parameters
deviceParameters DeviceParametersBuilders.DeviceParameters

Returns
LayoutElementBuilders.FontStyles