How to set maxLines and ellipsize of a TextView at the same time

前端 未结 7 1665
挽巷
挽巷 2021-01-30 12:54

I want to limit my text view to have maximum of 5 lines, so I did:



        
相关标签:
7条回答
  • 2021-01-30 13:25

    You only need to add this line to your TextView:

    android:ellipsize="marquee"
    
    0 讨论(0)
提交回复
热议问题