淡出textview android的底部 [英] Fade bottom of a textview android
本文介绍了淡出textview android的底部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当文本大于固定高度时,是否有一种方法可以淡化Android中TextView的底部?我正在Play商店中寻找类似的东西
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
NB:使用ellipsize和fadeEdge(也可以结合使用),将无法正常工作.
NB: with ellipsize and fadeEdge (also combination of them) it does not work.
推荐答案
您可以使用 android:requiresFadingEdge ="vertical"
.要更改渐变叠加高度 android:fadingEdgeLength ="32dp"
You can use android:requiresFadingEdge="vertical"
. To change the gradient overlay height android:fadingEdgeLength="32dp"
这篇关于淡出textview android的底部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文