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

前端 未结 7 1666
挽巷
挽巷 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:03

    Apparently you have to specify the inputType and set it to none in this case. It should look something like this:

提交回复
热议问题