title: Spannable Text is not working in Dialog Fragment
body: <p>I have added <code>TextView</code> in my <code>Dialog</code> Fragment and i show <strong>Spannable</strong> data Dynamically in this <code>TextView</code>. But it's not apply <strong>Spannable</strong> effect to the text.</p>
  
  <p>Here is my code to generate Three Spannable String and added into TextView.</p>
  
  <pre><code> TextView  textViewTicketSummary = (TextView) dialog.findViewById(R.id.ticketSummaryTextView);
   SpannableStringBuilder summary = new SpannableStringBuilder();
      SpannableString VehicleCaptureSpan, TotalVehicleSpan, DurationTimeSpan;
  
      String VehicleCapture = "Total Vehicles Captured:9";
      VehicleCaptureSpan = new SpannableString(VehicleCapture);
      VehicleCaptureSpan.setSpan(new StyleSpan(Typeface.BOLD), 0, VehicleCapture.length(), 0);
      VehicleCaptureSpan.setSpan(new ForegroundColorSpan(Color.RED), 0, VehicleCapture.length(), 0);
      VehicleCaptureSpan.setSpan(new RelativeSizeSpan(1.5f), 0, VehicleCapture.length(), 0);
  
      String TotalVehicle = "Total Car Park Capacity:10 ";
      TotalVehicleSpan = new SpannableString(TotalVehicle);
      TotalVehicleSpan.setSpan(new StyleSpan(Typeface.BOLD), 0, TotalVehicle.length(), 0);
      TotalVehicleSpan.setSpan(new ForegroundColorSpan(Color.RED), 0, TotalVehicle.length(), 0);
      TotalVehicleSpan.setSpan(new RelativeSizeSpan(1.5f), 0, TotalVehicle.length(), 0);
  
      String DurationTime = "Total Duration: 0 Min 3 Secs ";
      DurationTimeSpan = new SpannableString(DurationTime);
      DurationTimeSpan.setSpan(new StyleSpan(Typeface.BOLD), 0, DurationTime.length(), 0);
      DurationTimeSpan.setSpan(new ForegroundColorSpan(Color.RED), 0, DurationTime.length(), 0);
      DurationTimeSpan.setSpan(new RelativeSizeSpan(1.5f), 0, DurationTime.length(), 0);
  
      summary.append(VehicleCapture).append("\n\n")
              .append(TotalVehicle).append("\n\n")
              .append(DurationTime).append("\n");
  
      textViewTicketSummary.setText(summary, TextView.BufferType.SPANNABLE);
  </code></pre>
  
  <h2>Here is my Layout:</h2>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
  android:layout_width="match_parent"
  android:layout_height="match_parent"
  android:layout_gravity="center"
  android:background="@drawable/shape_dialog_patrol"
  android:orientation="vertical"
  android:paddingBottom="8dp" &gt;
  
   &lt;TextView
      android:id="@+id/dialogOneButtonMessage"
      style="@style/OneButtonDialogBody"
      android:text="Dialog Body" /&gt;
  
   &lt;TextView
      android:id="@+id/ticketSummaryTextView"
      android:layout_width="fill_parent"
      android:layout_height="wrap_content"
      android:layout_marginTop="10dp"
      android:background="@drawable/shape_textview_rounded_lightblack"
      android:lineSpacingExtra="4dp"
      android:padding="12dp"
      android:text="Ticket Details"
      android:textAppearance="?android:attr/textAppearanceMedium"
      android:textColor="@color/white"/&gt;
  
   &lt;RelativeLayout
      android:layout_width="match_parent"
      android:layout_height="wrap_content"
      android:layout_gravity="center_horizontal"
      android:gravity="center_horizontal|top"
      android:orientation="horizontal" &gt;
  
      &lt;Button
          android:id="@+id/dialogOneButtonText"
          style="@style/OneButtonDialogButton2"
          android:layout_alignParentRight="true"
          android:layout_gravity="center_horizontal"
          android:text="@string/ok" /&gt;
     &lt;/RelativeLayout&gt;
  
   &lt;/LinearLayout&gt;
  </code></pre>
  
  <h2>Here is the Output:</h2>
  
  <p><img src="https://i.stack.imgur.com/iarUq.png" alt="enter image description here"></p>
  
  <p>Please give me some hint..Why it's not working in <code>Dialog Fragment</code>?</p>