title: In textview ellipsize="end" and gravity="center" not working properly
body: <p>I need the textview like this with maxline="2"</p>
  
  <h2><a href="https://i.stack.imgur.com/4eBIU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/4eBIU.png" alt="enter image description here"></a></h2>
  
  <p>but when I give it the gravity="center_horizontal" and ellipsesize="end" it will give me like this. the text in the second line will be hide</p>
  
  <p><a href="https://i.stack.imgur.com/a1Mjg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a1Mjg.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <p>and when I give it the <strong>gravity="center_vertical"</strong> and <strong>ellipsesize="end"</strong>  it will give me much better than above one but I need the hello text in center for good look.</p>
  
  <p><a href="https://i.stack.imgur.com/WYUj6.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/WYUj6.png" alt="enter image description here"></a></p>
  
  <hr>
  
  <pre><code>        &lt;LinearLayout
              android:layout_width="match_parent"
              android:layout_height="match_parent"
              android:orientation="horizontal"&gt;
  
              &lt;TextView
                  android:id="@+id/tv_list_music_songname"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="3"
                  android:ellipsize="end"
                  android:maxLines="2"
                  android:gravity="center"
                  android:includeFontPadding="false"
                  android:padding="5dp"
                  android:text="Hello ABCDEFGHIJKLMNOPQRSTUVW"
                  android:textSize="15dp" /&gt;
  
              &lt;TextView
                  android:id="@+id/tv_list_music_songtimeduration"
                  android:layout_width="0dp"
                  android:layout_height="wrap_content"
                  android:layout_weight="1"
                  android:gravity="right"
                  android:padding="5dp"
                  android:text="ABC"
                  android:textSize="15dp" /&gt;
          &lt;/LinearLayout&gt;
  </code></pre>