Android settings use ellipsis instead when text in textview exceeds the capacity of textview
Sometimes when textview is displayed in listview, text will be displayed in interlaced lines due to its long length, which looks unfriendly on the UI.
The official provides relevant methods to realize single line display.
Only the following settings are required:
Set in XML as follows:
If the single line in the middle is set to true, you can realize a single line, and the ellipsis is at the end, while the ellipsis size controls the position of the ellipsis, including start, middle, end and marquee.
The above is the Android settings introduced by Xiaobian. When the text in textview exceeds the capacity of textview, use ellipsis instead. I hope it will be helpful to you. If you have any questions, please leave me a message and Xiaobian will reply to you in time!