Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fade bottom of a textview android

is there a way to fade the bottom of a TextView in Android when the text is bigger than a fixed height? I'm looking for a thing such like in the Play Store

enter image description here

NB: with ellipsize and fadeEdge (also combination of them) it does not work.

like image 614
bongia Avatar asked May 02 '13 08:05

bongia


1 Answers

You can use android:requiresFadingEdge="vertical". To change the gradient overlay height android:fadingEdgeLength="32dp"

like image 114
rndstr Avatar answered Nov 19 '22 19:11

rndstr