On Tue, Apr 26, 2011 at 10:51 AM, Zsolt Vasvari <[email protected]> wrote:
> I am almost certain that's your problem.  addPreferencesFromResource()
> should not be used with the new style preference activity.

I am certain that it's not my problem, as the indent problem still
occurs even if I switch to headers mode. addPreferencesFromResource()
is perfectly valid -- otherwise, every app using PreferenceActivity
would break on Android 3.0. It is deprecated, meaning developers
should be meandering away from it when the opportunity arises. And
anyone using nested preference screens, like you, probably should
meander much more quickly, as nested preference screens looked nasty
when I tried it on HC.

My problem indeed is a question of layout. If I:

-- Copy over preference_information_holo.xml into my project
-- Add a preference_widget_width dimension resource to match (56dip
portrait, 72dip landscape)
-- Specify android:layout in my preference XML to use this layout

then everything is fine. I can probably force this without all the
copies via a style, but I don't want to introduce that until the end
lest it muddy my analysis.

Now, I need to figure out why it's not picking that up automatically,
the way it presumably is doing for the standard preferences.

-- 
Mark Murphy (a Commons Guy)
http://commonsware.com | http://github.com/commonsguy
http://commonsware.com/blog | http://twitter.com/commonsguy

Warescription: Three Android Books, Plus Updates, One Low Price!

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to