Ellipsize individual lines of a SpannableString in a TextView
问题 I have a TextView storing an address that is two lines long. The street goes on the first line and is bold. The city & state go on the second line and are not bold. I want the end of each line ellipsized if the individual text on that line runs over. I'm using a SpannableString to store the address because I want the street address to be bold and the city & state to be not bold. Is there a way to do this that isn't a total hack without using two TextViews for each line? Example outputs: Ex: