-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Labels
Milestone
Description
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:
- Go to AndroidMenifest.xml and locate the application theme style.
- Go to styles.xml locate that style and set parent="Theme.MaterialComponents.NoActionBar" for it.
- Start FirebaseUI sign-in screen.
Observed Results:
- Provider's buttons are now primary colored, no icon, simple buttons. see image in:
https://stackoverflow.com/questions/65745954/theme-materialcomponents-style-ruins-firebase-authui-layout
Expected Results:
- Provider's buttons customized for each provider like shown in FirebaseUI docs:
https://firebase.google.com/docs/auth/android/firebaseui
Relevant Code:
<style name="AppTheme" parent="Theme.MaterialComponents.NoActionBar">
...
</style>
startActivityForResult(
AuthUI.getInstance().createSignInIntentBuilder()
.setAvailableProviders(providers)
.build(),
RC_SIGN_IN
)
joknu1