title: Setting Ellipsize on TextView reduces lines shown by one (instead of only ellipsizing last)
body: <p>when I am using <code>TextView</code> with <code>singleLine=&quot;true&quot;</code> and <code>ellipsize=&quot;end&quot;</code>(my top TextView),
  <em>it works well</em></p>
  <p><strong>but in another</strong> <code>TextView</code> having more then 1 lines (in my case 3 lines in my bottom <code>TextView</code>),
  <code>lines=&quot;3&quot;  and  maxLines=&quot;3&quot;  and  ellipsize=&quot;end&quot;,</code> <strong>doesn't work properly.</strong></p>
  <p>When I DON'T put <code>ellipsize=&quot;end&quot;</code> in tvDesc, it shows 3 line, which is OK.
  Here is code : XML :</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot; &gt;
  
      &lt;ImageView
          android:id=&quot;@+id/imgv&quot;
          android:layout_width=&quot;65dp&quot;
          android:layout_height=&quot;80dp&quot;
          android:layout_alignParentLeft=&quot;true&quot;
          android:layout_alignParentTop=&quot;true&quot;
          android:src=&quot;@drawable/img1&quot;
          android:scaleType=&quot;fitXY&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/tvTitle&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentTop=&quot;true&quot;
          android:layout_toRightOf=&quot;@+id/imgv&quot;
          android:background=&quot;@android:color/white&quot;
          android:textColor=&quot;@android:color/black&quot;
          android:text=&quot;Title testing line number and ellipsize at end&quot;
          android:maxLines=&quot;1&quot;
          android:singleLine=&quot;true&quot;
          android:ellipsize=&quot;end&quot;    &lt;---  WORKS WELL
          android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/tvDesc&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_below=&quot;@+id/tvTitle&quot;
          android:layout_toRightOf=&quot;@+id/imgv&quot;
          android:layout_alignBottom=&quot;@+id/imgv&quot;
          android:layout_alignParentRight=&quot;true&quot;
          android:textSize=&quot;14dp&quot;
          android:lines=&quot;3&quot;
          android:maxLines=&quot;3&quot;
                         &lt;----------  WITHOUT ellipsize
          
          android:text=&quot;I wanna this textview of having 3 lines and ellipsize at END and at this time I am Testing for it. This TextView shows 3 lines WITHOUT ellipsize property, but shows only 2 Lines when ELLIPSIZE property is setted&quot;
          android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p><strong>Above code shows TextView tvDesc with 3 Lines and No-Ellipsize.</strong> Here is Image :</p>
  <p><img src="https://i.stack.imgur.com/5IYLa.png" alt="enter image description here" /></p>
  <p><strong>But, I wanna ellipsize, so I uses followin code</strong> : XML :</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
  &lt;RelativeLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot; &gt;
  
      &lt;ImageView
          android:id=&quot;@+id/imgv&quot;
          android:layout_width=&quot;65dp&quot;
          android:layout_height=&quot;80dp&quot;
          android:layout_alignParentLeft=&quot;true&quot;
          android:layout_alignParentTop=&quot;true&quot;
          android:src=&quot;@drawable/img1&quot;
          android:scaleType=&quot;fitXY&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/tvTitle&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_alignParentTop=&quot;true&quot;
          android:layout_toRightOf=&quot;@+id/imgv&quot;
          android:background=&quot;@android:color/white&quot;
          android:textColor=&quot;@android:color/black&quot;
          android:text=&quot;Title testing line number and ellipsize at end&quot;
          android:maxLines=&quot;1&quot;
          android:singleLine=&quot;true&quot;
          android:ellipsize=&quot;end&quot;
          android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; /&gt;
  
      &lt;TextView
          android:id=&quot;@+id/tvDesc&quot;
          android:layout_width=&quot;wrap_content&quot;
          android:layout_height=&quot;wrap_content&quot;
          android:layout_below=&quot;@+id/tvTitle&quot;
          android:layout_toRightOf=&quot;@+id/imgv&quot;
          android:layout_alignBottom=&quot;@+id/imgv&quot;
          android:layout_alignParentRight=&quot;true&quot;
          android:textSize=&quot;14dp&quot;
          android:lines=&quot;3&quot;
          android:maxLines=&quot;3&quot;
          android:ellipsize=&quot;end&quot;    &lt;------  WITH  ELLIPSIZE
          
          android:text=&quot;I wanna this textview of having 3 lines and ellipsize at END and at this time I am Testing for it. This TextView shows 3 lines WITHOUT ellipsize property, but shows only 2 Lines when ELLIPSIZE property is setted&quot;
          android:textAppearance=&quot;?android:attr/textAppearanceMedium&quot; /&gt;
  
  &lt;/RelativeLayout&gt;
  </code></pre>
  <p><strong>Which shows TextView tvDesc with only 2 lines and Ellipsize</strong>,</p>
  <p>which is not properly dezired UI, as Followin:
  <img src="https://i.stack.imgur.com/k9GfQ.png" alt="enter image description here" /></p>
  <p><strong>I wanna 3 lines in TextView tvDesc with ellipsize</strong></p>
  <p><strong>CAN  ANYONE  HELP  ME.?</strong></p>