Android Textview Truncate

208 views Asked by At

I have a textview that have a maxline of 2. When i put this code

tv.setEllipsize(TextUtils.TruncateAt.END);

result will be
line1
line2 bla bla bla b...

but when I use

tv.setEllipsize(TextUtils.TruncateAt.MARQUEE);

nothing is changed

my expected result on marquee is the fading effect that looks something like this

enter image description here

So any idea on how to achieve this fade effect on textview with multiple line

1

There are 1 answers

1
Jona On

Style the text alpha property using the Android text library