Robin Dijkhof Robin Dijkhof - 3 months ago 16
Android Question

How to create a TextView with a PreferenceCategory layout?

How do I create a

TextView
with a
PreferenceCategory
layout?

Example:
Example

I can't use the PreferenceCategory because it is not in a PreferenceActivity.

Answer

I think the best option was to use a TextView and add the following lines:

        android:textAppearance="?android:attr/textAppearanceSmall"
        android:textColor="@color/colorPrimaryDark"
        android:textStyle="bold"