title: Transform my simple code databinding one way to databinding two
body: <p>I want to transform my code1 one databinding one way to code2 databinding two way is my code correct; i m not sur if i doing well thanks.</p>
  
  <p>// code1</p>
  
  <pre class="lang-xml prettyprint-override"><code>   ‹EditText android:text="@{user.name} " 
        android : afterTextChanged ="@{callback.change}"/ &gt;
  </code></pre>
  
  <pre class="lang-java prettyprint-override"><code>   public void change (Editable s ) {
        final String text = s.toString(); 
        if (!text equals(name name.get()){
           name.set(text);
        }
     }
  </code></pre>
  
  <p>//Code2</p>
  
  <pre class="lang-xml prettyprint-override"><code>   &lt;EditText android:text="@={user.name} "
        android : afterTextChanged ="@={callback.change}"/ &gt;
  </code></pre>