Note that this doesn’t just check if the TextView
has ellipsizing enabled, it actually checks if the size of the TextView is too short for the full text to appear.
Layout l = textview.getLayout();
if (l != null) {
int lines = l.getLineCount();
if (lines > 0 && l.getEllipsisCount(lines - 1) > 0) {
Log.d(TAG, "Text is ellipsized");
}
}