I have a TextView
and my need is to add 10 characters in that TextView by code. But when characters are greater than 10, they should be display in TextView but with 8 character + ..
of that charsequence. And when I want to read text of that TextView I must get full charsequence not 8 character + ..
. For example
tv.settext("ASDFGHJKLQ") // this is 10 characters long, so no rule required
but
tv.settext("ASDFGHJKLOP")
// this is more than 10 characters then it should be display as
ASDFGHJK..
in textView, but when I retrieve the value of textview, it should return ASDFGHJKLOP
instead of ASDFGHJK..
, so how can it be done.
That textView is row of a listview.