title: how to change the alertdialog box style in android
body: <p>I am just trying to build a alertdialog for my android application.</p>
  
  <p>what I actually want is a dialog box like this:
  <a href="https://i.stack.imgur.com/6oIhZ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6oIhZ.png" alt="enter image description here"></a></p>
  
  <p>whose positive and negative button are filled across dialog box</p>
  
  <p>but I always get something like this:</p>
  
  <p><a href="https://i.stack.imgur.com/ozjUm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ozjUm.png" alt="enter image description here"></a></p>
  
  <p>and these two buttons stick together at the right corner of dialog box</p>
  
  <p>can anybody tell me what to do to change the alertdialog from the second one to first one?</p>
  
  <p>many thanks</p>