Skip to content

Apply the default theme

Default theme code

If the client wants to use the default themes provided by the Widgets library, then he needs to call the below line in the activity where the widget is used (step already presented in Theme Setup section). It applies the current defined style with the default values from the library.

1
theme.applyStyle(R.style.Theme_Commerce_DayNight, true)