tags:

views:

34

answers:

1

I'd like to be able to customize the view of a PreferenceScreen, and so I'm interested in knowing how to set a style for it.

A: 

I wouldn't recommend it but you can start extending all the preference's classes (DialogPreference, CheckboxPreference, etc) and create your own widgets with the style you want.

Macarse
I'm interested only in the PreferenceScreen . I'd like to increase the font size for the text that the PreferenceScreen displays it (the one speficied in the android:title tag)
rantravee
@klaus-vlad did you try extending it and changing that through the code?
Macarse
Could you point me exactly where the modifications should be made ?
rantravee
@klaus-vlad: Never did it myself, but that's what I would try. Sorry.
Macarse
ok, thanks though !
rantravee
PreferenceScreen class is final and cannot be extended
rantravee
@klaus-vlad: oh, that's bad. It also doesn't have any method for what you are trying to do :(
Macarse
What I've tried is to use the android:layout attribute to set a different layout. The layout I've tried to set is actually the android original layout with the not public resources removed and the textAppereance atribute value modified. The problem is that with this approach the widget and the summery of the preference screen are lost.
rantravee