TextUtils.TruncateAt
Stay organized with collections
Save and categorize content based on your preferences.
Page Summary
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>
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[],["`TextUtils.TruncateAt` is an enum with four constant values: `END`, `MARQUEE`, `MIDDLE`, and `START`. It inherits methods from `java.lang.Enum`, `java.lang.Object`, and `java.lang.Comparable`, including methods for comparison, object identity, and string representation. Key methods are `compareTo`, `equals`, `hashCode`, `name`, `ordinal`, and `toString`. The `valueOf` method is available to retrieve an enum constant by name.\n"]]