简体   繁体   中英

ListPreference in Fragment

I want to show a ListPreference inside a Fragment.
The ListPreference is the same as used in a standalone settings Activity. But I can't figure out how to directly open the ListPreference view from the fragment (without showing the whole Settings view).
I found there exists a class DialogFragment, but does it work for that use case?

Note that I'm using the compatibility version of Fragment API. The class PreferenceFragment is not available there.

But I can't figure out how to directly open the ListPreference view from the fragment (without showing the whole Settings view).

AFAIK, this is not supported on any version of Android.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM