close
The Wayback Machine - https://web.archive.org/web/20161009120553/https://developer.android.com/reference/android/icu/text/RelativeDateTimeFormatter.Style.html
Skip to content

Most visited

Recently visited

navigation

RelativeDateTimeFormatter.Style

public static final enum RelativeDateTimeFormatter.Style
extends Enum<RelativeDateTimeFormatter.Style>

java.lang.Object
   ↳ java.lang.Enum<android.icu.text.RelativeDateTimeFormatter.Style>
     ↳ android.icu.text.RelativeDateTimeFormatter.Style


The formatting style

Summary

Enum values

RelativeDateTimeFormatter.Style  LONG

Everything spelled out. 

RelativeDateTimeFormatter.Style  NARROW

Use single letters when possible. 

RelativeDateTimeFormatter.Style  SHORT

Abbreviations used when possible. 

Public methods

static RelativeDateTimeFormatter.Style valueOf(String name)
static final Style[] values()

Inherited methods

BERJAYAFrom class java.lang.Enum
BERJAYAFrom class java.lang.Object
BERJAYAFrom interface java.lang.Comparable

Enum values

LONG

Added in API level 24
RelativeDateTimeFormatter.Style LONG

Everything spelled out.

NARROW

Added in API level 24
RelativeDateTimeFormatter.Style NARROW

Use single letters when possible.

SHORT

Added in API level 24
RelativeDateTimeFormatter.Style SHORT

Abbreviations used when possible.

Public methods

valueOf

Added in API level 24
RelativeDateTimeFormatter.Style valueOf (String name)

Parameters
name String
Returns
RelativeDateTimeFormatter.Style

values

Added in API level 24
Style[] values ()

Returns
Style[]
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.