views:

37

answers:

0

I have made a custom preference (i.e. a preference with a custom layout) which displayed in the preferences list of a PreferenceActivity.

The layout is created in code. The problem is that the font of the TextView created in code looks somewhat different than Android's standard preference font.

So the solution would be to apply the style attributes of android's preference to my TextView. The respective styles should be preferenceScreenStyle or preferenceStyle (I'm not sure).

My problem is I can't figure out how to read out android's standard style attributes, so I could set them in code.