I am having a framelayout with two textviews where the second textview has to follow after the first textview. There is too much of space between the two text views as the width depends on the character width of the string. How do i calculate the width of the string or the width of each characters in the string so that i could place the second text view after the first.
SpannableString strUserName = new SpannableString(String.format(
"%" + Name().length() + "s", "")
.replace("", " ")