truncateText
fun truncateText(text: CharSequence, customEllipsisText: CharSequence, newLayout: Layout, ellipsisTextLayout: Layout, ellipsizedLineNumber: Int, layoutWidth: Float, isAlignedLeft: Boolean, isRtl: Boolean): CharSequence
Truncates text which is too long and appends the given custom ellipsis CharSequence to the end of the visible text.
Return
The provided text truncated in such a way that the 'customEllipsisText' can appear at the end.
Parameters
text
Text to truncate
customEllipsisText
Text to append to the end to indicate truncation happened
newLayout
A Layout object populated with measurement information for this text
ellipsisTextLayout
A Layout object populated with measurement information for the ellipsis text.
ellipsizedLineNumber
The line number within the text at which truncation occurs (i.e. the last visible line).