So I have found that android PreferenceScreen is not very style-friendly. Is there a semi-simple way to just add a header (say an image) to the preferencescreen before the preferences are shown? I am currently extending the PreferenceActivity class, but could someone show me how to add a linear layout to the header?
Thanks
In my app I do exactly what you are requesting like this:
and in the
preferences_layout.xmlfile:Notice the
android:idset on theListViewin the xmlNow you have control over the layout of the preferences screen and use the default style for the preferences as long as you use built-in preferences.