Ellipsis of TextView
I have a custom Adapter that renders some items on a ListView. I need to show an icon on the ListView's items, if the item's text is showing is ellipsized, and hide it if there's enough room for the text to finish. I have access to the button in getView method of my adapter (where I set the text) but as soon as I set the text, is won't add ellipses to the end, it seems it is not being measured just yet.

Is there any way I can do this?
Ellipsis of TextView
===

I have a custom Adapter that renders some items on a ListView. I need to show an icon on the ListView's items, if the item's text is showing is ellipsized, and hide it if there's enough room for the text to finish. I have access to the button in getView method of my adapter (where I set the text) but as soon as I set the text, is won't add ellipses to the end, it seems it is not being measured just yet.

Is there any way I can do this?