The answers here didn't work for me. However, this one did:
source: https://stackoverflow.com/a/53402144/9026710
In your PreferenceScreen add this line:
xmlns:app="http://schemas.android.com/apk/res-auto"
add this line in PreferenceScreen and it's elements:
app:iconSpaceReserved="false"
Example: