androidandroid-layoutandroid-xmlandroid-styles

finding the correct style in R.attr


using:

android:textAppearance="?android:attr/...."

I would like to style a TextView to look like the default style of the "summary" attribute within a PreferenceScreen.

using the styles from this official list, I have tried "summary" and "summaryOn", but neither of them looks like the default style for summaries. Can anyone explain why, or suggest which one I should be using?


Solution

  • There isn't a theme attribute that refers to the specific semantic of preference summary text, preferences use ?android:attr/textAppearanceSmall as illustrated here. (This is the layout file used by the Android framework for preference items.)