I have a TextView that I would like to know if it has been truncated due to singleLine="true" in the XML.
What are some ideas to achieve this without having to pass in the displayed text but to detect this with the TextView only?
I have a TextView that I would like to know if it has been truncated due to singleLine="true" in the XML.
What are some ideas to achieve this without having to pass in the displayed text but to detect this with the TextView only?
Copyright © 2021 Jogjafile Inc.
The answer the OP was looking for was found in the following link: Check if textview is ellipsized in android
The answer basically uses this method to compare the length of the text to the ellipse count to tell if has been truncated.