Question

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?

Was it helpful?

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: http://goo.gl/3yZmx (This is the layout file used by the Android framework for preference items.)

OTHER TIPS

The correct way to reference an ID is using @.

Such as @string/my_string

Since you wish to reference an ID defined by Android directly, try this:

android:textAppearance="@android:id/summary"
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top