title: PreferenceFragmentCompat has padding on PreferenceCategory that I can't get rid of
body: <p>So I've been trying to create a settings activity using androidx.preference.PreferenceFragmentCompat and it's all working fine.</p>
  <p>However for some reason there is some padding present on both the preference categories and the preferences themselves. I managed to get rid of the padding on the preferences by using app:iconSpaceReserved=&quot;false&quot; but this doesn't seem to work on the categories.</p>
  <p><a href="https://i.stack.imgur.com/iz9ly.jpg" rel="nofollow noreferrer">Image</a></p>
  <p>I've tried all the various themes, PreferenceThemeOverlay.v14.Material etc but they don't seem to make a difference</p>
  <p>Here is my code for everything!</p>
  <p>SettingsActivity.java</p>
  <pre><code>import android.os.Bundle;
  
  import androidx.appcompat.app.ActionBar;
  import androidx.appcompat.app.AppCompatActivity;
  import androidx.appcompat.widget.Toolbar;
  
  public class SettingsActivity extends AppCompatActivity {
  
      @Override
      protected void onCreate(Bundle savedInstanceState) {
  
          super.onCreate(savedInstanceState);
          setContentView(R.layout.activity_settings);
  
          Toolbar toolbar = findViewById(R.id.settings_toolbar);
          setSupportActionBar(toolbar);
          ActionBar actionBar = getSupportActionBar();
          if (actionBar != null) {
              actionBar.setDisplayHomeAsUpEnabled(true);
              actionBar.setDisplayShowTitleEnabled(false);
          }
  
      }
  }
  </code></pre>
  <p>activity_settings.xml</p>
  <pre><code>&lt;androidx.constraintlayout.widget.ConstraintLayout xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;
      xmlns:app=&quot;http://schemas.android.com/apk/res-auto&quot;
      xmlns:tools=&quot;http://schemas.android.com/tools&quot;
      android:layout_width=&quot;match_parent&quot;
      android:layout_height=&quot;match_parent&quot;
      tools:context=&quot;.SettingsActivity&quot;&gt;
  
      &lt;androidx.appcompat.widget.Toolbar
          android:id=&quot;@+id/settings_toolbar&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;wrap_content&quot;&gt;
  
          &lt;TextView
              style=&quot;@style/ToolbarTitle&quot;
              android:layout_width=&quot;wrap_content&quot;
              android:layout_height=&quot;wrap_content&quot;
              android:text=&quot;@string/title_settings&quot;
              android:textColor=&quot;@color/font_dark_primary&quot; /&gt;
  
      &lt;/androidx.appcompat.widget.Toolbar&gt;
  
      &lt;fragment
          android:name=&quot;com.henrytwist8gmail.fullcart.SettingsTestFragment&quot;
          android:tag=&quot;settings_fragment&quot;
          android:layout_width=&quot;match_parent&quot;
          android:layout_height=&quot;0dp&quot;
          app:layout_constraintBottom_toBottomOf=&quot;parent&quot;
          app:layout_constraintTop_toBottomOf=&quot;@id/settings_toolbar&quot; /&gt;
  
  &lt;/androidx.constraintlayout.widget.ConstraintLayout&gt;
  </code></pre>
  <p>SettingsTestFragment.java</p>
  <pre><code>import android.os.Bundle;
  
  import androidx.preference.PreferenceFragmentCompat;
  
  public class SettingsTestFragment extends PreferenceFragmentCompat {
  
      @Override
      public void onCreatePreferences(Bundle savedInstanceState, String rootKey) {
  
          setPreferencesFromResource(R.xml.preferences_test, rootKey);
      }
  }
  </code></pre>
  <p>preferences_test.xml</p>
  <pre><code>&lt;PreferenceScreen xmlns:android=&quot;http://schemas.android.com/apk/res/android&quot;&gt;
  
      &lt;PreferenceCategory android:title=&quot;test&quot; &gt;
  
          &lt;Preference android:title=&quot;testPref&quot; /&gt;
      &lt;/PreferenceCategory&gt;
  
  &lt;/PreferenceScreen&gt;
  </code></pre>
  <p>My dependencies are...</p>
  <pre><code>implementation 'com.google.android.material:material:1.0.0-beta01'
  implementation 'androidx.preference:preference:1.0.0-beta01'
  implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
  </code></pre>