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.
- I tried using
setWidgetLayoutResource
. They appear correctly but my widget is on the right and not below the text. - I tried using only one constructor to keep the style. Doesn't work.
- I tried everything on this website and tried using his code on GitHub. Looks good on his screenshots, not on mine.
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)