setTheme

open fun setTheme(@StyleRes resid: Int)

Sets the activity's theme. When the activity is already created, the SDK's Compose UI re-reads its colors from the new theme without recreating the activity.

Parameters

resid

The style resource of the theme.