title: TextView using Spannable - ellipsize doesn't work
body: <p>The issue I'm trying to fix is the following: I'm having a <code>TextView</code> and I'm using a <code>Spannable</code> to set some characters bold.
  The text needs to have a maxim of 2 lines ( <code>android:maxLines="2"</code>) and I want the text to be ellipsized, but for some reason I cannot make the text ellipsized.</p>
  
  <p>Here is the simple code:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
                android:orientation="vertical"
                android:layout_width="fill_parent"
                android:layout_height="fill_parent"&gt;
  
      &lt;TextView android:id="@+id/name"
                android:layout_width="wrap_content"
                android:layout_height="wrap_content"
                android:gravity="center"
                android:maxLines="2"
                android:ellipsize="end"
                android:bufferType="spannable"
                android:text="@string/app_name"
                android:textSize="15dp"/&gt;
  
  &lt;/LinearLayout&gt;
  </code></pre>
  
  <p>and the activity:</p>
  
  <pre><code>public class MyActivity extends Activity {
  
      private TextView name;
  
      @Override
      public void onCreate(Bundle savedInstanceState) {
          super.onCreate(savedInstanceState);
          setContentView(R.layout.main);
  
          name= (TextView) findViewById(R.id.name);
  
  
          name.setText("Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy ");
          Spannable spannable = (Spannable)name.getText();
          StyleSpan boldSpan = new StyleSpan( Typeface.BOLD );
          spannable.setSpan( boldSpan, 10, 15, Spannable.SPAN_INCLUSIVE_INCLUSIVE );
  
      }
  }
  </code></pre>
  
  <p>The text is truncated, no "..." are displayed.
  <img src="https://i.stack.imgur.com/VQOjT.png" alt="enter image description here"></p>