0

A preference style can be set like this:

<Preference
    android:key="my_pref"
    style="?android:preferenceInformationStyle" />

Is there a way to apply the same style dynamically from Java?

1 Answers1

0

You cannot set a view's style programmatically. Probably below solution will help: android set style in code

Community
  • 1
  • 1
Nickolai Astashonok
  • 2,878
  • 3
  • 20
  • 23