title: Android : Databinding, notifyPropertyChanged() not working?
body: <p>I am using Android's data binding library. I have my data object extending <code>BaseObservable</code>. </p>
  
  <pre><code>public static class SimpleData extends BaseObservable implements Serializable {
      private String text, subText;
      private SpannableString totalText;
  
      @Bindable
      public SpannableString getTotalText() {
        return totalText;
      }
  
      public void setTotalText(SpannableString totalText) {
        this.totalText = totalText;
        notifyPropertyChanged(BR.totalText);
      }
  }
  </code></pre>
  
  <p>And my xml is binded as well</p>
  
  <pre><code>&lt;TextView
      android:id="@+id/patient_name"
      android:layout_width="wrap_content"
      android:layout_height="wrap_content"
      android:textAppearance="?android:attr/textAppearanceMedium"
      android:layout_marginLeft="16dp"
      android:layout_toRightOf="@+id/patient_image"
      android:textColor="@color/primary_text"
      android:text="@{object.getTotalText()}"/&gt;
  </code></pre>
  
  <p>The binding takes place for the initial values. But when I change the value using</p>
  
  <pre><code>object.setTotalText(someSpannableString);
  </code></pre>
  
  <p>the changes are not reflected in the text view. What could be the problem?</p>