Android Question Trim a label

apty

Active Member
Licensed User
Longtime User
I have labels that display text from database. Sometimes the text is larger than the label. In this cases i would like to show text that only fits the label but replace the last 3 characters with (...) e.g. if the label should display "My name is jack", i want it to show "My name is ..." (i.e. only characters that fit the label with last 3 characters replaced with dots).
 
Top