2

I read in multiple places that themes are immutable. However, from this [method](https://developer.android.com/reference/android/content/res/Resources.Theme.html#applyStyle(int, boolean)) and this answer, I don't see how that is true. What do people mean when they say themes are immutable?

haart
  • 307
  • 2
  • 11

1 Answers1

2

By immutable they mean that if you define a theme in a styles file, in XML, you cannot change its properties dynamically (programatically).

See the answer provided here: How to programmatically create an Android theme style?

Tudor S.
  • 809
  • 2
  • 12
  • 29