title: How to set AlertDialog left and right margin?
body: <p>I want to set left and right margins to 40dp</p>
  
  <pre><code>AlertDialog.Builder dialogBuilder = new AlertDialog.Builder(this);
  LayoutInflater inflater = this.getLayoutInflater();
  View dialogView = inflater.inflate(R.layout.content_dialog, null);
  dialogBuilder.setView(dialogView);
  
  AppCompatTextView title = new AppCompatTextView(this);
  int innerPadding_px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 24, getResources().getDisplayMetrics());
  int outerPaddingLeftRight_px = (int) TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, 40, getResources().getDisplayMetrics());
  
  title.setPadding(innerPadding_px, innerPadding_px, innerPadding_px, innerPadding_px);
  AlertDialog alertDialog = dialogBuilder.create();
  
  
  WindowManager.LayoutParams layoutParams = alertDialog.getWindow().getAttributes();
  </code></pre>
  
  <p>I try like this, but it isn't working</p>
  
  <pre><code>layoutParams.horizontalMargin = outerPaddingLeftRight_px;
  alertDialog.getWindow().setAttributes(layoutParams);
  alertDialog.setTitle("Выбрать автомобиль");
  alertDialog.show();
  </code></pre>