title: EditText: Avoid getting focus on setText()
body: <p>I have an activity with a scrollview containing  some buttons and a EditText
  So the buttons are above the EditText component.</p>
  
  <p>By clicking on a Button the EditText component change his text value by using <code>EditText.setText("foo");</code></p>
  
  <p>Unfortunately this call will set the focus to the EditText component, so the ScrollView will scroll to the EditText component (cursor blinks).</p>
  
  <p>Is there a way to avoid this?</p>
  
  <p>I have tried to do something like this</p>
  
  <pre><code>public void setText(String t){
      editText.setFocusable(false)
      editText.setFocusableInTouchMode(false);
      editText.setText(t);
      editText.setFocusable(true);
      editText.setFocusableInTouchMode(true);
  }
  </code></pre>
  
  <p>But that does not work, and sometimes <code>setFocusable(true)</code> has no impact, so the EditText is not "clickable" anymore.</p>