These answers will move the position of the AlertDialog, however, the position of the displayed dialog will also include the padding around the dialog.
If you want to get rid of this padding (for example, to place your dialog flush against the bottom of the screen), you will also need to override the default AlertDialog style in your styles.xml to set the windowBackground to null, like so: