Show extra info for Preference screens when CheckboxPreference summary field is not enough long?

Posted by Pentium10 on Stack Overflow See other posts from Stack Overflow or by Pentium10
Published on 2010-03-09T11:47:53Z Indexed on 2010/03/09 11:51 UTC
Read the original article Hit count: 243

I have situation when you can enabled/disable modules for my Android application.

For this I use a CheckboxPreference screen. This is all good, but the summary field gets cut off if longer descriptions are added than 2 lines.

Suppose I have 4-5 lines of description available for each module, I would like to display this in a helper window.

I tried to bind a click event to the CheckboxPreference, but that fires for the whole line, so not only when the checkbox is clicked, and more, where ever you click on the line the checkbox is toggled.

So now I am wondering if this can be fixed. So if the user needs more info, just taps the text and the helper opens up, and if want to toggle the settings it taps the checkbox.

How would you do it? I am open to other ideas too, if they do work.

© Stack Overflow or respective owner

Related posts about android

Related posts about preferences