只需要下边的设置:

textview.setSingleLine(); 
textview.setEllipsiz(TextUtils.TruncateAt.valueOf("END"));

在xml中设置如下:

android:singleLine="true" 
android:ellipsize="end"

相关文章:

  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-02-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案