Jak wyrównać PreferencjeAktywność w systemie Android?

mamPreferencesActivity którego potrzebuję, aby był wyrównany, ponieważ chcę używać języka arabskiego, próbowałem użyćandroid:layout_gravity="right" dlaPreferenceScreen ale to nie zadziałało.

To jest mój XML:

<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" android:layout_gravity="right">
        <PreferenceCategory android:title="General Settings">
                <CheckBoxPreference
                        android:title="Full Screen"
                        android:defaultValue="false"
                        android:summary="Always view as Full Screen"
                        android:key="fullScreenPref" />
        <Preference
                android:title="Report Bugs"
                android:summary="Notify us for any Bugs or Errors"
                android:key="bugs"/>
        <Preference
                android:title="About"
                android:summary="Version 1.0.0"
                android:key="about"/>
        </PreferenceCategory>
</PreferenceScreen>

W ten sposób używam XML wewnątrzPreferencesActivity:

addPreferencesFromResource(R.layout.preferences);

questionAnswers(14)

yourAnswerToTheQuestion