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

前端 未结 7 1667
挽巷
挽巷 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:08

    
    

    Works for me, make sure TextView top container should have height like

    android:layout_height="wrap_content"
    

提交回复
热议问题