title: Is it possible to change the behaviour of a dialog button after the dialog has been created?
body: <p>I am preparing a login dialog that can change to a register dialog.</p>
  
  <p>It has a custom view and contains a clickable text view that I use to switch between the register display and login display.</p>
  
  <p>When a user clicks it I change the title of the dialog and I display or vanish the input box for retyping the password.</p>
  
  <p>However, I can't change the text or the <code>OnClick</code> function of the positive button.</p>
  
  <p>the <code>setPositiveButton</code> method only exists for <code>DialogBuilder</code> but not for the dialog itself.</p>
  
  <p>Do I have to rebuild the entire dialog or is there a way to change the button "on the fly"?</p>