title: Clear EditText from ViewModel when Submit is clicked via Binding
body: <p>I have trying to clear the EditText from the ViewModel when the <strong>Comment</strong> is clicked. I have binded by View to the ViewModel along with the Comment button. Is there a way to clear the EditText when the comment button is clicked from the View without having to create an OnClick listener in the actual activity?</p>
  
  <p>Here is the View code.</p>
  
  <pre><code>&lt;Button
     android:id="@+id/Comment_button"
     android:onClick="@{() -&gt; ViewModel.newComment()}"
     android:text="Comment"/&gt;
  
  &lt;EditText
     android:id="@+id/Comment_textbox"
     android:text="@={ViewModel.Comment}" /&gt;
  </code></pre>
  
  <p>Here is the ViewModel that it is accessing.</p>
  
  <pre><code>var Comment : String? = null
  
  fun newComment()
      {
          //Sends data to repostitory.
      }
  
  </code></pre>
  
  <p>Is there some code I could put that would clear the EditText without having to make an onclick listener in the Activity?</p>