title: android-How to change alertdialog items gravity
body: <p>this is my alertDialog :</p>
  
  <pre><code>                AlertDialog.Builder builder = new AlertDialog.Builder(NewCar.this);
                  builder.setTitle("Make your selection");
                  builder.setItems(items, new DialogInterface.OnClickListener() {
                      public void onClick(DialogInterface dialog, int item) {
                         Log.v("this",items[item]+ " ");
                      }
                  });
                  AlertDialog alert = builder.create();
                  alert.show();
                  TextView titleView = (TextView)alert.findViewById(getResources().getIdentifier("alertTitle", "id", "android"));
                  if (titleView != null) {
                      titleView.setGravity(Gravity.RIGHT);
                  }
  </code></pre>
  
  <p>this is the output :</p>
  
  <p><img src="https://i.stack.imgur.com/QnLwC.jpg" alt="enter image description here"></p>
  
  <p>as you can see , the title is right to left but I can't make the items right to left too .</p>
  
  <p>How can I make the items to go from right to left ?</p>
  
  <p>thanks you </p>