If setMaxLines(int) has been used to set two or more lines, only TextUtils.TruncateAt.END and TextUtils.TruncateAt.MARQUEE are supported (other ellipsizing types will not do anything). https://developer.android.com/reference/android/widget/TextView.html#attr_android:ellipsize
if you want to use textview with 2 lines and ellipsize=middle you can divide your text in half and to do use it
it looks like this