Most visited

Recently visited

Added in API level 24

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


格式化风格

Summary

Enum values

RelativeDateTimeFormatter.Style  LONG

一切都拼写出来。

RelativeDateTimeFormatter.Style  NARROW

尽可能使用单个字母。

RelativeDateTimeFormatter.Style  SHORT

尽可能使用缩写。

Public methods

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

Inherited methods

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

Enum values

LONG

Added in API level 24
RelativeDateTimeFormatter.Style LONG

一切都拼写出来。

NARROW

Added in API level 24
RelativeDateTimeFormatter.Style NARROW

尽可能使用单个字母。

SHORT

Added in API level 24
RelativeDateTimeFormatter.Style SHORT

尽可能使用缩写。

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[]

Hooray!