Language

AbbreviationLength Enum

Definition

Enumerates values returned by several methods of AbbreviationLength and taken as a parameter of several methods of DateUtils.

public enum AbbreviationLength
type AbbreviationLength = 
Inheritance
AbbreviationLength

Fields

Name Value Description
Long 10

Request the full spelled-out name.

Medium 20

Request an abbreviated version of the name.

Short 30

This constant was deprecated in API level 17. Use SimpleDateFormat instead.

Request a shorter abbreviated version of the name. For use with the 'abbrev' parameter of getDayOfWeekString(int, int) and getMonthString(int, int).

Android reference for android.text.format.DateUtils.LENGTH_SHORT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Shorter 40

Request an even shorter abbreviated version of the name. Do not use this.

Shortest 50

This constant was deprecated in API level 17. Use SimpleDateFormat instead.

Request an even shorter abbreviated version of the name. For use with the 'abbrev' parameter of getDayOfWeekString(int, int) and getMonthString(int, int).

Android reference for android.text.format.DateUtils.LENGTH_SHORTEST.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to