title: How can I customize permission dialog in Android?
body: <p>Suppose I request a permission at runtime like the following:</p>
  
  <pre><code>ActivityCompat.requestPermissions(thisActivity,
              new String[]{Manifest.permission.READ_CONTACTS},
              MY_PERMISSIONS_REQUEST_READ_CONTACTS);
  </code></pre>
  
  <p>Android system creates a popup dialog to request permission. How can I define a custom layout for that dialog?</p>