title: AndroidX Preference Screen shifted off center
body: <p>I have a preference screen in my app and it is shifted off center and the header text or data doesn't start from the left shown in the image below. I am initializing the settings fragment. I have not applied any visual changes or added any special attributes.</p>
  
  <p>There is no padding or margin in the parent activity. I also have a recycler view which is displayed perfectly fine in the app with it being off centered</p>
  
  <p>This is my preferences.xml file </p>
  
  <pre><code>&lt;androidx.preference.PreferenceScreen
  xmlns:app="http://schemas.android.com/apk/res-auto"&gt;
  
      &lt;PreferenceCategory
          app:title="General"&gt;
          &lt;Preference
              app:key="feedback"
              app:title="Send Feedback"
              app:summary="Report technical issues or suggest new features"/&gt;
          &lt;Preference
              app:key="about"
              app:title="About Us"/&gt;
      &lt;/PreferenceCategory&gt;
  
  
      &lt;PreferenceCategory
          app:title="Customize"&gt;
  
          &lt;SwitchPreferenceCompat
              app:key="@string/key_darkTheme"
              app:title="Enable Dark Theme"
              app:summary="Enable dark theme throughout app (Restarts App Automatically)"
              app:defaultValue="false"/&gt;
  
          &lt;ListPreference
              app:key="@string/key_font"
              app:title="Set Font Size"
              app:entries="@array/settings_list_preference_font"
              app:entryValues="@array/settings_list_preference_values"
              app:defaultValue="2"
              app:summary="Set font size according to your liking"/&gt;
  
  
      &lt;/PreferenceCategory&gt;
  
  &lt;/androidx.preference.PreferenceScreen&gt;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/eGIDU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/eGIDU.png" alt="Preference Screen off center"></a></p>