title: data binding is not updating view
body: <p>I am trying to update a view from my viewmodel class but it is not working. Here is my xml file</p>
  
  <p>
     </p>
  
  <pre><code>&lt;data&gt;
  
      &lt;variable
          name="mainViewModel"
          type=".MainViewModel" /&gt;
  &lt;/data&gt;
  
  &lt;RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
      xmlns:app="http://schemas.android.com/apk/res-auto"
      xmlns:tools="http://schemas.android.com/tools"
      android:layout_width="match_parent"
      android:layout_height="match_parent"
      tools:context=".MainActivity"&gt;
  
      &lt;LinearLayout
          android:layout_width="match_parent"
          android:layout_height="match_parent"
          android:orientation="vertical"&gt;
  
          &lt;android.support.v7.widget.Toolbar
              android:id="@+id/toolbar"
              android:layout_width="match_parent"
              android:layout_height="?attr/actionBarSize"
              android:background="@color/black"
              android:elevation="4dp" /&gt;
  
          &lt;View
              android:layout_width="match_parent"
              android:layout_height="4dp"
              android:background="@color/base_color" /&gt;
  
          &lt;TextView
              android:id="@+id/personalNumber"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/text_border"
              android:gravity="center_vertical"
              android:padding="8dp"
              android:text="@{String.valueOf(mainViewModel.personalNumber)}"
              android:textSize="16sp" /&gt;
  
          &lt;TextView
              android:id="@+id/location"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/text_border"
              android:gravity="center_vertical"
              android:padding="8dp"
              android:text="@{mainViewModel.location}"
              android:textSize="16sp" /&gt;
  
          &lt;TextView
              android:id="@+id/ordersCount"
              android:layout_width="match_parent"
              android:layout_height="wrap_content"
              android:background="@drawable/text_border"
              android:gravity="center_vertical"
              android:padding="8dp"
              android:text="@{mainViewModel.ordersCount}"
              android:textSize="16sp" /&gt;
  
          &lt;Button
              android:layout_width="200dp"
              android:layout_height="wrap_content"
              android:layout_gravity="center_horizontal"
              android:layout_marginTop="30dp"
              android:background="@drawable/main_activity_buttons"
              android:textColor="@color/white" /&gt;
      &lt;/LinearLayout&gt;
  &lt;/RelativeLayout&gt;
  &lt;/layout&gt;
  </code></pre>
  
  <p>MainViewModel class</p>
  
  <pre><code>public class MainViewModel extends BaseObservable {
  
  private int ordersCount;
  
  @Bindable
  public int getPersonalNumber() {
      return MyApplication.getClientPreferences().getPersonalNumber();
  }
  
  @Bindable
  public String getLocation() {
      return MyApplication.getClientPreferences().getLocation();
  }
  
  @Bindable
  public String getOrdersCount(){
      return 
  </code></pre>
  
  <p>MyApplication.getInstance().getResources().getString(R.string.orders_count,ordersCount);
      }</p>
  
  <pre><code>public void setOrdersCount(int ordersCount) {
      this.ordersCount = ordersCount;
      notifyPropertyChanged(this.ordersCount);
      Toast.makeText(MyApplication.getInstance(), String.valueOf(ordersCount), Toast.LENGTH_SHORT).show();
  }
  }
  </code></pre>
  
  <p>I tried to use Observable field for updating view from MainViewModel and it worked. But it is not working by extending MainViewModel from BaseObservable</p>