title: How to right align PreferencesActivity in android?
body: <p>I have <code>PreferencesActivity</code> which I need it to be right aligned because I want to use Arabic language, I tried to use <code>android:layout_gravity="right"</code> for <code>PreferenceScreen</code> but it didn't work.</p>
  
  <p>This is my XML:</p>
  
  <pre><code>&lt;PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:layout_gravity="right"&gt;
          &lt;PreferenceCategory android:title="General Settings"&gt;
                  &lt;CheckBoxPreference
                          android:title="Full Screen"
                          android:defaultValue="false"
                          android:summary="Always view as Full Screen"
                          android:key="fullScreenPref" /&gt;
          &lt;Preference
                  android:title="Report Bugs"
                  android:summary="Notify us for any Bugs or Errors"
                  android:key="bugs"/&gt;
          &lt;Preference
                  android:title="About"
                  android:summary="Version 1.0.0"
                  android:key="about"/&gt;
          &lt;/PreferenceCategory&gt;
  &lt;/PreferenceScreen&gt;
  </code></pre>
  
  <p>This is how I use the XML inside <code>PreferencesActivity</code>:</p>
  
  <pre><code>addPreferencesFromResource(R.layout.preferences);
  </code></pre>