Re: [android-developers] Re: How to navigate to nested PreferencesScreen
On Thu, Mar 10, 2011 at 10:29 AM, Justin Anderson <magouyaware@gmail.com> wrote:
> Create a Preference subclass for each preference xml file and inflate the
> appropriate layout
Couldn't you have done just one Preference subclass, with the child
XML file as a custom attribute?
I ask in part because I think your approach may become more necessary.
Right now, a "legacy" PreferenceActivity with nested PreferenceScreen
elements looks bad on Android 3.0:
http://commonsware.com/blog/2011/02/25/nested-preferencescreens-honeycomb-ugly.html
And PreferenceFragment is not in the Android compatibility library.
Off the cuff, that means the way to get single-source cross-version
decent-looking nested preference screens may be via your approach.
--
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy
Android Training Worldwide: http://commonsware.com/training
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home