Skip to content

FirebaseUI not compatible with "Theme.MaterialComponents.*" styling #1901

@OmerLevy1248

Description

@OmerLevy1248

Welcome to FirebaseUI and thanks for submitting an issue!

Please take a look at open issues, as well as resolved issues, to see if your issue is either already being addressed, or has been solved by someone else.

If not, please feel free to fill in the following info so we can help faster!

Step 1: Are you in the right place?

  • For issues or feature requests related to the code in this repository file a GitHub issue.
  • For general technical questions, post a question on StackOverflow tagged appropriately.
  • For general Firebase discussion, use the firebase-talk google group
  • For help troubleshooting your application that does not fall under one of the above categories, reach out to the personalized Firebase support channel

Step 2: Describe your environment

  • Android device: Pixel 3 AVD
  • Android OS version: 10.0 (API29)
  • Google Play Services version: 4.3.4
  • Firebase/Play Services SDK version: 26.1.0
  • FirebaseUI version: 7.0.0

Step 3: Describe the problem:

when changing the application theme's parent to "Theme.MaterialComponents.*", All buttons in FirebaseUI change style to default, primary colored, no icon buttons.
More detailed explanation in my SO question here: https://stackoverflow.com/questions/65745954/theme-materialcomponents-style-ruins-firebase-authui-layout

Steps to reproduce:

  1. Go to AndroidMenifest.xml and locate the application theme style.
  2. Go to styles.xml locate that style and set parent="Theme.MaterialComponents.NoActionBar" for it.
  3. Start FirebaseUI sign-in screen.

Observed Results:

Expected Results:

Relevant Code:

  <style name="AppTheme" parent="Theme.MaterialComponents.NoActionBar">
      ...
  </style>

startActivityForResult(
  AuthUI.getInstance().createSignInIntentBuilder()
      .setAvailableProviders(providers)
      .build(), 
  RC_SIGN_IN
)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions