title: Why my focus is on cancel button
body: <p>I have a password input <code>dialog</code> in the Android <code>fragment</code>. When using the soft keyboard, if a password is wrong a dialog will still show and focus will stay in the <code>editText</code> input box. </p>
  
  <p>The problem is, when a user uses physical keyboards and the password is not right, the focus will be on the cancel button (I have two <code>buttons</code> in the <code>dialog</code>, cancel is on the left and OK is on the right). How can I set the focus on the <code>editText</code>? I've tried to use the <code>requestFocus()</code> function, but it does not work.</p>