0

I am creating a preference screen in Android using all standard layouts. But earlier I have been messing around with the code for fixing an earlier issue and now the preference icons won't center as per the normal margins. I have checked all my code and there is no references to icon margins or paddings. Can I have messed up in the stock layout files?

Example image

As you can see the category title and the preference titles are fine. It is only the icon that is misplaced.

I have tried this Android: How to maximize PreferenceFragment width (or get rid of margin)? but it changes the entire PreferenceFragment and not only the icons.

Ajeet Choudhary
  • 1,969
  • 1
  • 17
  • 41
jvvpc
  • 3
  • 1
  • 5
  • It's not the icon, it's the item TextView that has left margin or padding. – WindRider Jul 04 '17 at 16:33
  • I am not sure of that. If you compare with the stock preference. the category title and the icon have the same left space. https://storage.googleapis.com/material-design/publish/material_v_11/assets/0B6Okdz75tqQsOEdqZHpWZHNKaXM/patterns_settings_subscreen3.png – jvvpc Jul 04 '17 at 16:36

0 Answers0