Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to open MaterialAlertDialogBuilder #12

Open
ghost opened this issue Mar 15, 2019 · 0 comments
Open

Unable to open MaterialAlertDialogBuilder #12

ghost opened this issue Mar 15, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Mar 15, 2019

I'm inheriting the DragDismissTheme,

apparently this theme doesn't support to launch MaterialAlertDialog

getting below error -
java.lang.IllegalArgumentException: com.google.android.material.dialog.MaterialAlertDialogBuilder requires a value for the :attr/colorSurface attribute to be set in your app theme. You can either set the attribute in your theme or update your theme to inherit from Theme.MaterialComponents (or a descendant).

my theme -

<style name="DragDismissTheme.Extend" parent="DragDismissTheme"> @color/color_primary @color/color_primary_dark @color/color_accent @style/ThemeOverlay.MaterialComponents.MaterialAlertDialog </style>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants