There was an error while loading. Please reload this page.
Changing your app theme to inherit from Theme.Components or Theme.Components.ActionBar is the recommended approach:
Theme.Components
Theme.Components.ActionBar
<style name="Theme.MyApp" parent="@style/Theme.Components"> ... </style>
If you cannot change your theme to inherit from Theme.Components, inherit from a Material Components theme and set the following attributes:
<style name="Theme.MyApp" parent="@style/Theme.MaterialComponents.DayNight"> <item name="colorError">@color/hmrc_red</item> <item name="materialTextButtonStyle">@style/MaterialTextButtonNoInset</item> <item name="materialIconButtonStyle">@style/MaterialTextIconButtonNoInset</item> <item name="materialCardViewStyle">@style/Widget.Components.CardView</item> </style>