I have a TextView , and I need to add 10 characters to the TextView by code. But when characters are more than 10, they should be displayed in the TextView, but with 8 character + .. this charsequence. And when I want to read the text of this TextView, I have to get a full charsequence of not 8 character + .. for instance
tv.settext ("ASDFGHJKLQ") // this is 10 characters long, so no rule is required
but
tv.settext("ASDFGHJKLOP") // it is more than 10 characters, then it should be displayed as ASDFGHJK.. in the textView, but when I get the value textview, it should return ASDFGHJKLOP instead of ASDFGHJK.. , as it can be done.
This text is a list box.
source share