Package ai.nexconn.chatui.widget
Class EllipsizeTextView
-
- All Implemented Interfaces:
public class EllipsizeTextViewA TextView that supports multi-line middle ellipsis and ignores auto line-break behavior
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classEllipsizeTextView.Range
-
Constructor Summary
Constructors Constructor Description EllipsizeTextView(Context context)EllipsizeTextView(Context context, AttributeSet attrs)
-
Method Summary
Modifier and Type Method Description voidsetMaxLines(int maxLines)voidsetText(CharSequence text, BufferType type)voidsetEllipsizeText(CharSequence ellipsizeText, int ellipsizeIndex)voidsetAdaptiveText(String text)Set the text content of this TextView without automatic line-break adaptation. -
-
Method Detail
-
setMaxLines
void setMaxLines(int maxLines)
-
setText
void setText(CharSequence text, BufferType type)
-
setEllipsizeText
void setEllipsizeText(CharSequence ellipsizeText, int ellipsizeIndex)
- Parameters:
ellipsizeText- the ellipsis indicator textellipsizeIndex- the number of characters from the end where ellipsis begins
-
setAdaptiveText
void setAdaptiveText(String text)
Set the text content of this TextView without automatic line-break adaptation.
- Parameters:
text- the text to set
-
-
-
-