TextUtils.TruncateAt

  • TextUtils.TruncateAt is a public, static, and final enum in Android used for specifying how text should be truncated when it's too long to fit in a given space.

  • It offers four truncation options: END, MARQUEE, MIDDLE, and START, indicating where the text should be shortened.

  • TextUtils.TruncateAt inherits methods from java.lang.Enum, java.lang.Object, and java.lang.Comparable for object comparison and manipulation.

  • Each enum value—END, MARQUEE, MIDDLE, and START—represents a different way to truncate text within a view.

public static final enum TextUtils.TruncateAt extends Enum<TextUtils.TruncateAt>

Inherited Method Summary

Enum Values

public static final TextUtils.TruncateAt END

public static final TextUtils.TruncateAt MARQUEE

public static final TextUtils.TruncateAt MIDDLE

public static final TextUtils.TruncateAt START