Android TextView with multiline and “android:ellipsize = middle”

后端 未结 5 1496
我寻月下人不归
我寻月下人不归 2020-12-21 04:25


        
5条回答
  •  余生分开走
    2020-12-21 05:12

    android:ellipsize="middle" doesn't seem to work with multiple lines on Android 4.0 and later. you could try the following which will work, however you only have the one line. Add the following to your textview.

    android:singleLine="true"
    

提交回复
热议问题