0

I want to apply the default preference theme for the title and summary, but on custom preference with a custom layout. This way all of them are the same, it looks better. When using the preference layout from Android source code, the title is too big.

What I tried that worked is using textAppearanceListItem on the title and textAppearanceSmall on the summary. But is this guaranteed to look the same as the other for all phones, all versions? (>=API 21 in my case)

Community
  • 1
  • 1
Nicolas
  • 6,611
  • 3
  • 29
  • 73

1 Answers1

0

you have to update your preferences to v14 to have material design look, and normal size of titles, follow this: add in gradle:

compile 'com.android.support:preference-v14:23.4.0'

then change your preference theme to the v14:

<item name="preferenceTheme">
    @style/PreferenceThemeOverlay.v14.Material
</item>

hope it helps you!

batsheva
  • 2,175
  • 1
  • 20
  • 32