Search code examples
androidandroid-preferencessummary

Android Preference with long summary (explanation)


I have a preference that represents some complex notion. I'd like to explain it, and the explanation is a bit long. When I add the explanation to the summary of the preference it gets cut off. Is there a standard for Android having long summary/description/explanation? Thank you.


Solution

  • I couldn't find any standard for long settings explanations.

    My solution

    I set the summary to be the value chosen by the preference and added a dialog with a long message to explain the chosen setting when it is chosen.

    This kind of keeps the settings UI standard without the need to custom the standard preference layouts.